Hi murray,
thanks for your reply, but meanwhile I took another approach and build
an internal buffer. So I can load the image and create the pixbuf with
the function creae_from_data and this works very well
regards
Kees Kling
On 05/02/2011 12:03 PM, Murray Cumming wrote:
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.
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list