Re: Gtk2::Gdk::Pixbuf on win32




On Mar 3, 2008, at 4:51 PM, T.J. Ferraro wrote:

I have tried using different bmp files. I am confident they are valid
bitmaps as the same code/images render fine on linux.

When I call $loader = Gtk2::Gdk::PixbufLoader->new_with_mime_type
('image/bmp'); I get: Unrecognized image file format

Also just tried png and gif files. And whether calling
Gtk2::Gdk::Pixbuf::new_from_data or loading a file directly all result
in the same errors.

Do other gtk+ programs work correctly with loading images on your machine?

At this point, if you have the ability, i'd say port your example code to C and verify that the C program still can't load the images.

If the C program can't load the images, that means that your gtk+ is broken somehow, and the bug report goes to gnome bugzilla.

If the C program can load the images, then something is wrong with your setup at runtime. Are the gdk-pixbuf loader modules being picked up correctly? (I don't know how to tell on windows; on linux i'd use strace.)

On further inspection of the gtk+ source, it looks like if there are no builtin loader modules, gdk-pixbuf will scan the loader config file to get the list spewed back by gdk_pixbuf_get_formats(); but this may not reflect whether the modules can actually be loaded. So there may be an issue with the loader module dlls not being in a path that you can find at runtime.


--
Diane, ten-oh-three, Great Northern Hotel.
Sheriff Truman and I have just been with the one-armed man, or what's left of him. In another time, another culture, he may have been a seer, or a shaman priest, but in our world, he's a shoe salesman, and lives among the shadows.
-- Special Agent Dale Cooper




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