Plone site members can change personal portrait using a webcam
Project description
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.
How it works
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.
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.
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).
Note: only the image part inside the highlight yellow section will be used as a new portrait.
After every shot taken, you can look at a preview of the image, and repeat the operation until you get a nice portrait.
Finally, you can save the new portrait in the user’s preferences. The image in the form will be immediately updated from the server.
Plone integration
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.
Browsers support
The user’s browser must support HTML Media Capture API so only recent and cool browser can be used:
Firefox: tested with Firefox 25
Chrome: tested with Chrome 30 (a little slow, but works)
Opera: tested with Opera Next, version 18
Safari: no support (c’mon Apple…)
Internet Explorer: support is expected for Internet Explorer 31 [1]
Mobile: no test done apart Safari on iOS (and it’s not working)
To know if your browser is supported, see the Can I Use Web site.
Changelog
0.1.0 (2013-11-10)
Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for collective.takeaportrait-0.1.0.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57713573ae83cd71d3ea2aa7cbb649628c71f62d2ac06eb9022507733f9abe50 |
|
MD5 | d28697540bc98a505a535887ca9c7ea3 |
|
BLAKE2b-256 | 89f777b22b9ee65eba62438eb6851ccb3b80c581c309b7c2edfba88cd9b51268 |