Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
collective.takeaportrait
Advanced tools
This product use super-modern browser feature for accessing the user's webcam (if any) to directly save a new portrait photo inside Plone personal preferences.
.. contents::
Just add the product to your buildout and activate the collective.takeaportrait add-on.
After that you will probably see a new button inside your "Personal Information" labeled "Take a photo". If you don't see any new button your browser will probably not support Media Capture API.
.. image:: http://keul.it/images/plone/collective.takeaportrait/collective.takeaportrait-0.1.0-01.png :alt: alternate text :align: center
.. image:: http://keul.it/images/plone/collective.takeaportrait/collective.takeaportrait-0.1.0-02.png :alt: alternate text :align: left
.. image:: http://keul.it/images/plone/collective.takeaportrait/collective.takeaportrait-0.1.0-03.png :alt: alternate text :align: right
When pressing the button the browser will ask you the permission to access the Webcam and you must accept to continue. The security request format is vendor specific.
When confirmed you will see the new portrait overlay, where the webcam is activated and the output stream is directly on your browser.
.. image:: http://keul.it/images/plone/collective.takeaportrait/collective.takeaportrait-0.1.0-04.jpg :alt: alternate text :align: center
You have two possible actions: close the window or take a photo. In the latter case a delay counter will be displayed on the left (you can raise or lower the delay using the range control, from 0 to 10 seconds).
.. image:: http://keul.it/images/plone/collective.takeaportrait/collective.takeaportrait-0.1.0-05.jpg :alt: alternate text :align: center
Note: only the image part inside the highlight yellow section (the viewfinder) will be used as a new portrait. You can move the viewfinder by drag and drop with the mouse (not working on mobile right now).
After every shot taken, you can look at a preview of the image, and repeat the operation until you get a nice portrait.
.. image:: http://keul.it/images/plone/collective.takeaportrait/collective.takeaportrait-0.1.0-07.jpg :alt: alternate text :align: center
Finally, you can save the new portrait in the user's preferences. The image in the form will be immediately updated from the server.
.. image:: http://keul.it/images/plone/collective.takeaportrait/collective.takeaportrait-0.1.0-08.png :alt: alternate text :align: center
The product contains a face detection support, that can automatically center the viewfinder on any recognized face.
Default implementation rely onto the OpenCV, Computer Vision Library
__ (that must be installed
on your Python env) and must be explicitly activated::
[instance]
...
zcml=
...
collective.takeaportrait.opencv
.. Note:: This feature in deeply experimental, a proof-of-concept not ready from production environment.
See `Plone, HTML 5 Canvas and Face Detection with Webcam`__ article for more.
__ http://blog.keul.it/2014/02/plone-html-5-canvas-and-face-detection.html
If you manually move the viewfinder, the auto-center feature based on face detection will be stopped.
As customizing the user preference form is something I don't like very much, this product is adding new features only using pure JavaScript.
Tested on Plone 4.3.
The user's browser must support HTML Media Capture API
__ so only recent and cool browser can be used:
To know if your browser is supported, see the Can I Use
__ Web site.
__ http://www.w3.org/TR/html-media-capture/ __ http://caniuse.com/stream
.. [1] Microsoft said that probably the Media Capture support will be delayed to Internet Explorer 36 in case Patent War VI against Kilrathi race on Tau Ceti will not over on time.
FAQs
Plone site members can change personal portrait using a webcam
We found that collective.takeaportrait demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.