media: support rotation by metadata

Summary:
if we drag & drop jpeg image with orientation information in exif metadata, the image was not properly rotated.

with D1082, D1084, you could see properly rotated image

fixes T1357

Test Plan: terminology -> drag and drop jpeg image with orientation metadata in exif -> check whether the image is rotated properly or not

Reviewers: billiob, raster

Reviewed By: billiob

CC: seoz

Maniphest Tasks: T1357

Differential Revision: https://phab.enlightenment.org/D1085
This commit is contained in:
wonguk.jeong 2014-06-24 21:41:40 +02:00 committed by Boris Faure
parent 69c8824caf
commit 9307b77b96
1 changed files with 1 additions and 0 deletions

View File

@ -323,6 +323,7 @@ _type_img_init(Evas_Object *obj)
evas_object_raise(sd->o_event);
evas_object_event_callback_add(o, EVAS_CALLBACK_IMAGE_PRELOADED,
_cb_img_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);