Re: gtk_pixbuf_save and to jpeg with resolution?



Tim Corio wrote:
I am saving a jpeg image from a GdkPixbuf using:
gdk_pixbuf_save (pxb, inFile, $gerror, "quality", "100", NULL);

Can I specify a resolution?

I've tried the parameter names "dpi", "resolution", and "Resolution",
but GDK dumps the warning: "(imagemask:21053): GdkPixbuf-WARNING **:
Unrecognized parameter (Resolution) passed to JPEG saver."

Is there a way to set the resolution on a saved image?

There are several libraries that will let you write exif tags to a jpeg file. exiv2 is the best (flexible and well-maintained).

- Mike




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