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/ ->
/usr/lib/libgdk- ->
/usr/lib/ ->
/usr/lib/ ->

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
"png" 5 "gtk20" "The PNG image format"
"image/png" ""
"png" ""
"\211PNG\r\n\032\n" "" 100

"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]