# HG changeset patch # User Elliott Sales de Andrade # Date 1267335320 0 # Node ID b680a9f2b6410aed22796cecfc103330875fda57 # Parent d1d03fff1f629a31c0015fe0c25a5ae5b8a789c5 Use PNG instead of JPEG for FT thumbnails which is supported on both MSN and XMPP. Maybe we should add a hint for the UI similar to buddy icons. diff -r d1d03fff1f62 -r b680a9f2b641 libpurple/protocols/jabber/si.c --- a/libpurple/protocols/jabber/si.c Sun Feb 28 04:38:11 2010 +0000 +++ b/libpurple/protocols/jabber/si.c Sun Feb 28 05:35:20 2010 +0000 @@ -1269,13 +1269,13 @@ if (purple_xfer_get_thumbnail_data(xfer)) { JabberData *thumbnail_data = jabber_data_create_from_data(purple_xfer_get_thumbnail_data(xfer), - purple_xfer_get_thumbnail_size(xfer), "image/jpeg", TRUE, + purple_xfer_get_thumbnail_size(xfer), "image/png", TRUE, jsx->js); xmlnode *thumbnail = xmlnode_new_child(file, "thumbnail"); xmlnode_set_namespace(thumbnail, NS_THUMBS); xmlnode_set_attrib(thumbnail, "cid", jabber_data_get_cid(thumbnail_data)); - xmlnode_set_attrib(thumbnail, "mime-type", "image/jpeg"); + xmlnode_set_attrib(thumbnail, "mime-type", "image/png"); /* cache data */ jabber_data_associate_local(thumbnail_data, NULL); } diff -r d1d03fff1f62 -r b680a9f2b641 pidgin/gtkft.c --- a/pidgin/gtkft.c Sun Feb 28 04:38:11 2010 +0000 +++ b/pidgin/gtkft.c Sun Feb 28 05:35:20 2010 +0000 @@ -1175,7 +1175,7 @@ gsize size; char *option_keys[2] = {"quality", NULL}; char *option_values[2] = {"75", NULL}; - gdk_pixbuf_save_to_bufferv(thumbnail, &buffer, &size, "jpeg", + gdk_pixbuf_save_to_bufferv(thumbnail, &buffer, &size, "png", option_keys, option_values, NULL); if (buffer) {