HI Alexandar,

Thanks for your input. I tried installing shared-mime-info package. But still 
it is not working. Below is the snippet how I configure and build 
shared-mime-info and gdk-pixbuf:

cd shared-mime-info-0.90
   ./configure --prefix=$WLD
   make
   make install
   cd ..

   # As of 2012-03-14, gtk git is saying:
   # Requested 'gdk-pixbuf-2.0 >= 2.25.2' but version of GdkPixbuf is 2.24.0
   cd gdk-pixbuf
   ./configure --prefix=$WLD --without-libtiff # Is it worth grabbing libtiff?
   make
   make install
   cd ..


Do I need to export any variable also?

Regards,
Avijit
________________________________________
From: Alexander Larsson [al...@redhat.com]
Sent: Wednesday, June 13, 2012 2:06 PM
To: Avijit Manna (WT01 - PES)
Cc: gtk-devel-list@gnome.org
Subject: 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.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