generate thumbnail based on rotated image according to EXIF orientation tag

Summary:
jpeg image which has EXIF orientation meta data was not rotated properly in fm or preview.

@fix

Test Plan:
1. get in "efl/src/tests/evas/images/ in fm.
2. check whether Light_exif_*.jpg are properly rotated or not.

Reviewers: raster, zmike

CC: seoz, cedric

Differential Revision: https://phab.enlightenment.org/D1109
This commit is contained in:
wonguk.jeong 2014-07-03 10:48:51 -04:00 committed by Mike Blumenkrantz
parent a0790eefff
commit 82b813d915
1 changed files with 1 additions and 0 deletions

View File

@ -420,6 +420,7 @@ _e_thumb_generate(E_Thumb *eth)
else if (evas_object_image_extension_can_load_get(ext))
{
im = evas_object_image_add(evas);
evas_object_image_load_orientation_set(im, EINA_TRUE);
evas_object_image_load_size_set(im, eth->w, eth->h);
evas_object_image_file_set(im, eth->file, NULL);
iw = 0; ih = 0;