Re: Format of tag-icon image



it's a serialized Gdk.Pixbuf.

use gdk_pixdata_deserialize to unserialize it and save it as a png.

and, before you ask, yes, you can use the gdk libs in a X-less
environment.

regards

s


On Fri, 2008-01-11 at 06:16 +0100, Andreas Unterkircher wrote:
> Hello,
> 
> Just to be sure - the format of the selected tag-icon, which is stored 
> in the table tags in the database, is not something "common" (jpeg, png, 
> ...), right?
> I decoded the base64 string and saw it was beginning with "GdkP..." is 
> this a GdkPixmap or GdkBitmap or ...? So can it only be handled with a 
> GTK toolkit?
> 
> I'm currently trying to display the tag-icon also in phpfspot, but till 
> now I didn't figured out what kind of format it is. So I'm thankful for 
> any hint.
> 
> Thanks,
> Andreas
> _______________________________________________
> F-spot-list mailing list
> F-spot-list gnome org
> http://mail.gnome.org/mailman/listinfo/f-spot-list
> 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]