Use JPEG FORMAT for ethumb where appropriate.

SVN revision: 57030
This commit is contained in:
titan 2011-02-14 17:12:28 +00:00 committed by titan
parent 2a34c1d908
commit 138abeab08
1 changed files with 9 additions and 1 deletions

View File

@ -138,8 +138,16 @@ _ephoto_thumbnail_icon_get(void *data, Evas_Object *obj __UNUSED__, const char *
{
Eina_List *node = data;
Evas_Object *o;
const char *ext = strrchr(eina_list_data_get(node), '.');
if (ext)
{
if ((!strcasecmp(ext, "jpg")) || (!strcasecmp(ext, "jpeg")))
ethumb_client_format_set(ephoto->client, ETHUMB_THUMB_JPEG);
}
else
ethumb_client_format_set(ephoto->client, ETHUMB_THUMB_FDO);
ethumb_client_format_set(ephoto->client, ETHUMB_THUMB_FDO);
ethumb_client_size_set(ephoto->client, etb->thumb_size, etb->thumb_size);
o = elm_thumb_add(ephoto->win);