comparison pidgin/gtkft.c @ 29818:fd354d0bfbc0

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...
author Marcus Lundblad <ml@update.uu.se>
date Sun, 28 Feb 2010 22:56:50 +0000
parents b680a9f2b641
children 25a53c299713
comparison
equal deleted inserted replaced
29817:b680a9f2b641 29818:fd354d0bfbc0
1171 purple_xfer_get_local_filename(xfer), 128, 128, NULL); 1171 purple_xfer_get_local_filename(xfer), 128, 128, NULL);
1172 1172
1173 if (thumbnail) { 1173 if (thumbnail) {
1174 gchar *buffer = NULL; 1174 gchar *buffer = NULL;
1175 gsize size; 1175 gsize size;
1176 char *option_keys[2] = {"quality", NULL}; 1176 char *option_keys[2] = {"compression", NULL};
1177 char *option_values[2] = {"75", NULL}; 1177 char *option_values[2] = {"9", NULL};
1178 gdk_pixbuf_save_to_bufferv(thumbnail, &buffer, &size, "png", 1178 gdk_pixbuf_save_to_bufferv(thumbnail, &buffer, &size, "png",
1179 option_keys, option_values, NULL); 1179 option_keys, option_values, NULL);
1180 1180
1181 if (buffer) { 1181 if (buffer) {
1182 purple_debug_info("pidgin", 1182 purple_debug_info("pidgin",