Use JPEG FORMAT for ethumb where appropriate.
SVN revision: 57030
This commit is contained in:
parent
2a34c1d908
commit
138abeab08
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue