[Telepathy] Empathy avatar from pixbuf

Xavier Claessens xclaesse at gmail.com
Thu Apr 28 23:29:34 PDT 2011


Hello,


Your way is clearly suboptimal because that take a pixbuf, save it on
file, load the file to a data buffer, create a pixbuf from the buffer.

Can't you get the raw data from cheese's API instead of a pixbuf? So you
could call avatar_chooser_set_image_from_data().

Regards,
Xavier Claessens.

Le jeudi 28 avril 2011 à 21:24 +0200, Raluca-Elena Podiuc a écrit :
> Hi,
> 
> My name is Raluca and I will be working this summer on a gsoc project.
> The first part of the project is to integrate Cheese with Empathy.
> 
> I tried to add support for avatar from camera to Empathy through
> libcheese but I could not use the pixbuf directly to set the avatar in
> Empathy (I got some segfaults).
> 
> Source code: https://github.com/raluca-elena/empathy-cheese
> 
> In  particular I refer to:
> https://github.com/raluca-elena/empathy-cheese/commit/f712d5456b475782c6dabe581a962ea13812d49c
> 
> Could you advise me how I can create an avatar object from the pixbuf
> taken from the webcam?
> 
> 




More information about the telepathy mailing list