eunue pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=70ad68bfc76f897b89c8db19652aa9c6607d3eb0

commit 70ad68bfc76f897b89c8db19652aa9c6607d3eb0
Author: Jaeun Choi <jaeun12.c...@samsung.com>
Date:   Fri Jan 13 20:23:54 2017 +0900

    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)
---
 src/lib/elementary/elm_bg.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/elementary/elm_bg.c b/src/lib/elementary/elm_bg.c
index 2023239..b2d5eb9 100644
--- a/src/lib/elementary/elm_bg.c
+++ b/src/lib/elementary/elm_bg.c
@@ -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);

-- 


Reply via email to