Use mm_util_resize_and_rotate_P_P instead 13/233913/1
authorMinje Ahn <minje.ahn@samsung.com>
Wed, 20 May 2020 08:00:44 +0000 (17:00 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Wed, 20 May 2020 08:00:44 +0000 (17:00 +0900)
For compatibility, delete the exif and rotate the image.

Change-Id: I07540849892bcb97880f529711f0d6c94ca4267d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
src/common/media-svc-util.c

index 9353abe..9368861 100644 (file)
@@ -1719,9 +1719,9 @@ int _media_svc_create_thumbnail(const char *path, char *thumb_path, media_svc_me
                }
 
                __media_svc_get_proper_thumb_size(origin_w, origin_h, &thumb_w, &thumb_h);
-               ret = mm_util_resize_P_P(path, thumb_w, thumb_h, thumb_path);
+               ret = mm_util_resize_and_rotate_P_P(path, thumb_w, thumb_h, thumb_path);
                if (ret != MM_UTIL_ERROR_NONE) {
-                       media_svc_error("mm_util_resize_P_P err: %d", ret);
+                       media_svc_error("mm_util_resize_and_rotate_P_P err: %d", ret);
                        SAFE_STRLCPY(thumb_path, "", MAX_FILEPATH_LEN);
                        return MS_MEDIA_ERR_INTERNAL;
                }