On Tue, 2012-06-12 at 14:40 +0000, avijit.ma...@wipro.com wrote:
> Hi,
> 
> On further debugging I could see the below behaviour:
> 
> 1. _gdk_pixbuf_get_module receives the buffer header as:<89>PNG
> 2. But when it fetch the mime_type on that buffer it is getting 
> mime_type:application/octet-stream which should be image/png.
> 
> Due to this there is a type mismatch in mime_type and hence it is returning 
> error with "Unrecognized image file format".
> 
> Any idea which could be the reason for this mime_type mismatch?

Gdk-pixbuf optionally uses gio to do mime sniffing, which requires the
shared-mime-info package to be installed. However, the configure script
for gdk-pixbuf explicitly tries to sniff the mimetype for some png data,
and only enables this if that worked.

Are you are building and deploying gdk-pixbuf in different contexts?

_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list

Reply via email to