Thanks for this: I have tracked down the gdkpixbuf documentation
http://developer.gnome.org/gdk-pixbuf/stable/gdk-pixbuf-file-saving.html#gdk-pixbuf-save
 and I see that there is a gdk_pixbuf_save() which is documented:

The variable argument list should be NULL-terminated; if not empty, it
should contain pairs of strings that modify the save parameters. For
example:


2
gdk_pixbuf_save (pixbuf, handle, "jpeg", &error, "quality", "100", NULL);
Currently only few parameters exist. JPEG images can be saved with a
"quality" parameter; its value should be in the range [0,100].

Text chunks can be attached to PNG images by specifying parameters of
the form "tEXt::key", where key is an ASCII string of length 1-79. The
values are UTF-8 encoded strings. The PNG compression level can be
specified using the "compression" parameter; it's value is in an integer
in the range of [0,9].

So I guess this will do right now, though there is likely some migration
work then to do in the future.

Richard




On Mon, 2011-05-23 at 20:08 +0200, Till Hartmann wrote:
> Am 23.05.2011 18:32, schrieb Richard Shann:
> > On Sun, 2011-05-22 at 12:16 +0200, Till Hartmann wrote:
> >> If someone can point out to me how to extract the first few measures,
> >> I'd like to try implementing them ;)
> > This is the bit that I think I have nearly everything ready for, but
> > thanks for the offer. What I have just realized though is that it looks
> > like there is no (longer?) support for writing the meta data into .png
> > files in the GTK. It looks like the cairo library we use only allows
> > writing the image. Did you solve this in your mypaint application?
> > Richard
> >
> >
> 
> mypaint uses pygtk, there's a convience method in gtk.gdk.pixbuf for 
> additional metadata when saving pixbufs. I have no clue how it would 
> look like in c GTK.



_______________________________________________
Denemo-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/denemo-devel

Reply via email to