After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 657978 - Support setting an avatar via webcam
Support setting an avatar via webcam
Status: RESOLVED FIXED
Product: gnome-contacts
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Contacts maintainer(s)
GNOME Contacts maintainer(s)
Depends on: 657977
Blocks:
 
 
Reported: 2011-09-01 17:58 UTC by Alexander Larsson
Modified: 2012-04-01 01:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Reorganizing stuff in avatar dialog (6.21 KB, patch)
2012-02-21 15:33 UTC, Erick Perez Castellanos
none Details | Review
Throwing Gstreamer in the mix (2.22 KB, patch)
2012-02-21 15:36 UTC, Erick Perez Castellanos
none Details | Review
The real deal (5.55 KB, patch)
2012-02-21 15:39 UTC, Erick Perez Castellanos
none Details | Review
cheese-flash support (10.32 KB, patch)
2012-02-24 13:25 UTC, Erick Perez Castellanos
none Details | Review
Using cheese-flash effect. (2.54 KB, patch)
2012-02-24 13:26 UTC, Erick Perez Castellanos
none Details | Review

Description Alexander Larsson 2011-09-01 17:58:46 UTC
There is some cheese integration code we can use in control center.
Also requires croping support (bug 657977).
Comment 1 Allan Day 2012-02-06 17:19:34 UTC
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.
Comment 2 Alexander Larsson 2012-02-07 11:17:05 UTC
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.
Comment 3 Allan Day 2012-02-07 11:43:10 UTC
(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.
Comment 4 Erick Perez Castellanos 2012-02-21 15:18:25 UTC
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.
Comment 5 Erick Perez Castellanos 2012-02-21 15:33:24 UTC
Created attachment 208138 [details] [review]
Reorganizing stuff in avatar dialog
Comment 6 Erick Perez Castellanos 2012-02-21 15:36:05 UTC
Created attachment 208143 [details] [review]
Throwing Gstreamer in the mix
Comment 7 Erick Perez Castellanos 2012-02-21 15:39:32 UTC
Created attachment 208145 [details] [review]
The real deal
Comment 8 Erick Perez Castellanos 2012-02-24 13:25:25 UTC
Created attachment 208345 [details] [review]
cheese-flash support
Comment 9 Erick Perez Castellanos 2012-02-24 13:26:48 UTC
Created attachment 208346 [details] [review]
Using cheese-flash effect.
Comment 10 Alexander Larsson 2012-03-29 16:20:41 UTC
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.
Comment 11 Erick Perez Castellanos 2012-04-01 01:27:32 UTC
It will flash the entire screen. Uploaded to master.