[shotwell: 1/2] Use the largest dimension when chosing the thumbnail size



commit 42ff637e8581db6c60d996ab983d3b00de747cb8
Author: Chris Ladd <caladd particlestorm net>
Date:   Sun Aug 19 21:27:41 2018 -0700

    Use the largest dimension when chosing the thumbnail size

 src/ThumbnailCache.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/ThumbnailCache.vala b/src/ThumbnailCache.vala
index f8030894..a0b27fd0 100644
--- a/src/ThumbnailCache.vala
+++ b/src/ThumbnailCache.vala
@@ -149,7 +149,7 @@ public class ThumbnailCache : Object {
         private void generate_thumbnail() throws Error {
             Photo? photo = source as Photo;
             if (photo != null) {
-                unscaled = photo.get_pixbuf(Scaling.for_best_fit(dim.width, true));
+                unscaled = photo.get_pixbuf(Scaling.for_best_fit(dim.major_axis(), true));
             } else {
                 Video? video = source as Video;
                 if (video != null)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]