gdk_pixbuf_save JPEG error!



Hello all!

I have an application that saves images as JPEG. The code is simple and it worked right
before than the last Thursday, when I updated the libgtk2 libraries on my kubuntu distribution.
From these day, I cannot save images in JPEG format. The following code, works:

    retval = (PRBool) gdk_pixbuf_save (image, mFilename.get(), "pgn", &error, NULL);

But the following

    retval = (PRBool) gdk_pixbuf_save (image, mFilename.get(), "jpeg", &error, NULL);

terminates the application like this:

    Program exited with code 01.

The program, links against these libraries:

/usr/lib/libgdk_pixbuf-2.0.so.0 -> libgdk_pixbuf-2.0.so.0.1000.6
/usr/lib/libgdk- x11-2.0.so.0 -> libgdk-x11-2.0.so.0.1000.6
/usr/lib/libgtk-x11-2.0.so.0 -> libgtk-x11-2.0.so.0.1000.6
/usr/lib/libgnomevfs-2.so.0 -> libgnomevfs-2.so.0.1600.1

and gdk-pixbuf-query-loaders seems to be good:

> gdk-pixbuf-query-loaders
# GdkPixbuf Image Loader Modules file
# Automatically generated file, do not edit
# Created by gdk-pixbuf-query-loaders from gtk+-2.10.6
#
# LoaderDir = /usr/lib/gtk-2.0/2.10.0/loaders
#
"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so"
"png" 5 "gtk20" "The PNG image format"
"image/png" ""
"png" ""
"\211PNG\r\n\032\n" "" 100

"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-jpeg.so"
"jpeg" 5 "gtk20" "The JPEG image format"
"image/jpeg" ""
"jpeg" "jpe" "jpg" ""
"\377\330" "" 100
...

Any idea about the problem?



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