cpw.malu.ft_thumbnails: 230fd6c2: The GDK pixbuf option "quality" is unkno...

malu at pidgin.im malu at pidgin.im
Sun Feb 28 18:01:28 EST 2010

Revision: 230fd6c21fdf1ed459a653bcd9808880a36204c3
Ancestor: a50352985ad85adc1c694b2d79d61a5a61c00de5
Author: malu at pidgin.im
Date: 2010-02-28T22:56:50
Branch: im.pidgin.cpw.malu.ft_thumbnails
URL: http://d.pidgin.im/viewmtn/revision/info/230fd6c21fdf1ed459a653bcd9808880a36204c3

Modified files:


The GDK pixbuf option "quality" is unknown when saving to PNG.
Use "compression". Maybe we should decrease the thumbnail size when doing PNG
to keep down in-band transfer size...

-------------- next part --------------
--- pidgin/gtkft.c	f82782f3949607d87afd08862c161faf5dbe8969
+++ pidgin/gtkft.c	60ccf0932b8aa56181481b01acf74fc0bf6d4fad
@@ -1173,8 +1173,8 @@ pidgin_xfer_add_thumbnail(PurpleXfer *xf
 		if (thumbnail) {
 			gchar *buffer = NULL;
 			gsize size;
-			char *option_keys[2] = {"quality", NULL};
-			char *option_values[2] = {"75", NULL};
+			char *option_keys[2] = {"compression", NULL};
+			char *option_values[2] = {"9", NULL};
 			gdk_pixbuf_save_to_bufferv(thumbnail, &buffer, &size, "png", 
 				option_keys, option_values, NULL);

More information about the Commits mailing list