GNOME Bugzilla – Bug 657978
Support setting an avatar via webcam
Last modified: 2012-04-01 01:27:32 UTC
There is some cheese integration code we can use in control center. Also requires croping support (bug 657977).
I can understand why we would want this functionality for setting the user's own contact card. It could maybe be interesting for mobile devices (I'm in a coffee shop using a tablet and get someone's email address, and I take a picture of them for the avatar) too. Is that what this is for? If it's just for the first case we might do better to integrate with system settings.
Well, its similar to how you can do this from the camera on e.g. an android phone. If you have no avatar of someone and want one, there are two solutions: 1) You have a laptop with a camera that you can point at the person when you meet him or 2) You happen to have an image file on your disk with the person I don't think 2 is more likely that 1, both seem viable.
(In reply to comment #2) > Well, its similar to how you can do this from the camera on e.g. an android > phone. If you have no avatar of someone and want one, there are two solutions: > > 1) You have a laptop with a camera that you can point at the person when you > meet him > or > 2) You happen to have an image file on your disk with the person > > I don't think 2 is more likely that 1, both seem viable. Yeah, agree.
Well, I got the patches for this. I didn't used libcheese, which provides this functionality, because cheese isn't a gnome-core app, and g-c does, so It doesnt seemed right to me. The code is kinda tricky, and ugly, but it works, at least for me. It would require some testing. There's still missing the tablet case, when the tablet has two cameras, and the contact/people is front of you and you want to change the camera for the shot. I haven't even think of that.
Created attachment 208138 [details] [review] Reorganizing stuff in avatar dialog
Created attachment 208143 [details] [review] Throwing Gstreamer in the mix
Created attachment 208145 [details] [review] The real deal
Created attachment 208345 [details] [review] cheese-flash support
Created attachment 208346 [details] [review] Using cheese-flash effect.
I created a gnome-3-4 branch and pushed these on master. However, I must say, the flash effect is kinda stupid. It only flashes inside the small window which doesn't light up things a lot. Ideally it should flash over the entire screen.
It will flash the entire screen. Uploaded to master.