Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1d72f56 authored by Wei-Ta Chen's avatar Wei-Ta Chen
Browse files

Make createThumbnailFromEXIF prefer choosing a thumbnail from the exif

to from the full image, if both can generate of a thumbnail of same size.
parent 6706caf9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -562,7 +562,7 @@ public class ThumbnailUtil {
        fullThumbWidth = fullOptions.outWidth / fullOptions.inSampleSize;

        // Choose the larger thumbnail as the returning sizedThumbBitmap.
        if (exifThumbWidth > fullThumbWidth) {
        if (exifThumbWidth >= fullThumbWidth) {
            int width = exifOptions.outWidth;
            int height = exifOptions.outHeight;
            exifOptions.inJustDecodeBounds = false;