evas: enable support for exif on all image type.

This commit is contained in:
Cedric BAIL 2014-06-29 13:42:08 +02:00
parent 9307b77b96
commit f39f25598d
1 changed files with 3 additions and 0 deletions

View File

@ -236,6 +236,7 @@ _type_thumb_init(Evas_Object *obj)
sd->type = TYPE_THUMB;
_et_init();
o = sd->o_img = evas_object_image_filled_add(evas_object_evas_get(obj));
evas_object_image_load_orientation_set(o, EINA_TRUE);
evas_object_smart_member_add(o, obj);
evas_object_clip_set(o, sd->clip);
evas_object_raise(sd->o_event);
@ -419,6 +420,7 @@ _type_scale_init(Evas_Object *obj)
evas_object_raise(sd->o_event);
evas_object_event_callback_add(o, EVAS_CALLBACK_IMAGE_PRELOADED,
_cb_scale_preloaded, obj);
evas_object_image_load_orientation_set(o, EINA_TRUE);
evas_object_image_file_set(o, sd->realf, NULL);
evas_object_image_size_get(o, &(sd->iw), &(sd->ih));
evas_object_image_preload(o, EINA_FALSE);
@ -487,6 +489,7 @@ _type_scale_calc(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Eva
evas_object_raise(sd->o_event);
evas_object_event_callback_add(o, EVAS_CALLBACK_IMAGE_PRELOADED,
_cb_scale_preloaded, obj);
evas_object_image_load_orientation_set(o, EINA_TRUE);
evas_object_image_file_set(o, sd->realf, NULL);
evas_object_image_load_size_set(sd->o_tmp, lw, lh);
evas_object_image_preload(o, EINA_FALSE);