Mercurial > pidgin.yaz
changeset 30232:b680a9f2b641
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.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 28 Feb 2010 05:35:20 +0000 |
parents | d1d03fff1f62 |
children | fd354d0bfbc0 |
files | libpurple/protocols/jabber/si.c pidgin/gtkft.c |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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); }
--- 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) {