Re: Cannot load TIFF image



On Tue, 2011-04-26 at 14:23 +0200, Kees Kling wrote:
> I'm trying to load an display TIFF images via a Gdk::Pixbuff
> 
> Glib::RefPtr<Gdk::Pixbuf> img = 
> Gdk::Pixbuf::create_from_file("bluemarble2_1_4.tif");
> 
> It doesn't work and gives me the following errors
> 
> (proj:24131): glibmm-CRITICAL **:
> unhandled exception (type Glib::Error) in signal handler:

Note that you could handle the exception with a try/catch block.

> domain: gdk-pixbuf-error-quark
> code  : 0
> what  : Failed to load image 
> '/home/kling/bluemarble/4/bluemarble2_1_4.tif': Failed to open TIFF image
> 
> 
> The image exist and is displayable in Gimp. Only gimp gives we the warning
> 
> "/home/kling/bluemarble/4/bluemarble2_1_4.tif: invalid TIFF directory; 
> tags are not sorted in ascending order"
> 
> This warning has nothing to do with the image itself, but with the 
> METAdata. Is this the problem and if can I still load the image

This is really a question for the GTK+ developers.

You might also try the eog image viewer, which presumably uses the same
GTK+ code to load images.

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



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