elm_bg: rotate image according to the orientation info

rotate image into the standard orientation according to the EXIF data
(think about taking a picture from camera and setting it as bg)
This commit is contained in:
Jaeun Choi 2017-01-13 20:23:54 +09:00
parent 4fe9144c9d
commit 70ad68bfc7
1 changed files with 1 additions and 0 deletions

View File

@ -157,6 +157,7 @@ _elm_bg_efl_file_file_set(Eo *obj, Elm_Bg_Data *sd, const char *file, const char
sd->img = evas_object_image_add
(evas_object_evas_get(wd->resize_obj));
evas_object_image_load_orientation_set(sd->img, EINA_TRUE);
if ((sd->load_opts.w > 0) && (sd->load_opts.h > 0))
evas_object_image_load_size_set
(sd->img, sd->load_opts.w, sd->load_opts.h);