Re: gtk_pixbuf_save and to jpeg with resolution?
- From: "Dr. Michael J. Chudobiak" <mjc avtechpulse com>
- To: Tim Corio <tcorio rochester rr com>
- Cc: GTK App Developers List <gtk-app-devel-list gnome org>
- Subject: Re: gtk_pixbuf_save and to jpeg with resolution?
- Date: Wed, 15 Dec 2010 10:31:08 -0500
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]