Re: gdk_pixbuf_new_from_file_at_scale() returning error saying "Unrecognized image file format" when loading png files

On Tue, 2012-06-12 at 14:40 +0000, avijit manna 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?

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