elementary: automatically rotate image using exif information.
authorCedric BAIL <cedric.bail@free.fr>
Thu, 29 Sep 2011 09:03:16 +0000 (09:03 +0000)
committerCedric BAIL <cedric.bail@free.fr>
Thu, 29 Sep 2011 09:03:16 +0000 (09:03 +0000)
Patch by Jiyoun Park <jy0703.park@samsung.com>

SVN revision: 63661

src/lib/elm_photocam.c
src/lib/els_icon.c

index 3c625b5..23ba11e 100644 (file)
@@ -332,6 +332,7 @@ grid_create(Evas_Object *obj)
              g->grid[tn].wd = wd;
              g->grid[tn].img =
                 evas_object_image_add(evas_object_evas_get(obj));
+             evas_object_image_load_orientation_set(g->grid[tn].img, EINA_TRUE);
              evas_object_image_scale_hint_set
                 (g->grid[tn].img, EVAS_IMAGE_SCALE_HINT_DYNAMIC);
              evas_object_pass_events_set(g->grid[tn].img, EINA_TRUE);
@@ -1110,6 +1111,7 @@ elm_photocam_add(Evas_Object *parent)
    wd->tsize = 512;
 
    wd->img = evas_object_image_add(e);
+   evas_object_image_load_orientation_set(wd->img, EINA_TRUE);
    evas_object_image_scale_hint_set(wd->img, EVAS_IMAGE_SCALE_HINT_DYNAMIC);
    evas_object_event_callback_add(wd->img, EVAS_CALLBACK_MOUSE_DOWN,
                                   _mouse_down, obj);
index ea55fb1..a2c8abc 100644 (file)
@@ -77,6 +77,7 @@ _els_smart_icon_file_helper(Evas_Object *obj)
    pclip = evas_object_clip_get(sd->obj);
    if (sd->obj) sd->prev = sd->obj;
    sd->obj = evas_object_image_add(evas_object_evas_get(obj));
+   evas_object_image_load_orientation_set(sd->obj, EINA_TRUE);
    evas_object_event_callback_add(sd->obj, EVAS_CALLBACK_IMAGE_PRELOADED,
                                   _preloaded, sd);
    evas_object_smart_member_add(sd->obj, obj);