Use JPEG FORMAT for ethumb where appropriate.

SVN revision: 57030
v-1.6.0
titan 12 years ago committed by titan
parent 2a34c1d908
commit 138abeab08
  1. 10
      src/bin/ephoto_thumb_browser.c

@ -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…
Cancel
Save