diff options
| author | 2022-04-20 00:12:09 -0400 | |
|---|---|---|
| committer | 2022-04-20 00:12:09 -0400 | |
| commit | 942e313727d1ad886a1024c24fe4a9e8e2e0bb3e (patch) | |
| tree | 1c4d5d826655cdb812c88563a25410f8b54e41d2 /nikola/image_processing.py | |
| parent | 8eeed31eb2f86ac982fa4b26f93b15828289c56d (diff) | |
New upstream version 8.2.0.upstream/8.2.0
Diffstat (limited to 'nikola/image_processing.py')
| -rw-r--r-- | nikola/image_processing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nikola/image_processing.py b/nikola/image_processing.py index b1d58c2..4ac6d93 100644 --- a/nikola/image_processing.py +++ b/nikola/image_processing.py @@ -142,7 +142,7 @@ class ImageProcessor(object): if w > max_size or h > max_size: size = max_size, max_size # Panoramas get larger thumbnails because they look *awful* - if bigger_panoramas and w > 2 * h: + if bigger_panoramas and w > 3 * h: size = min(w, max_size * 4), min(w, max_size * 4) try: im.thumbnail(size, Image.ANTIALIAS) @@ -189,7 +189,7 @@ class ImageProcessor(object): # calculate new size preserving aspect ratio. ratio = float(w) / h # Panoramas get larger thumbnails because they look *awful* - if bigger_panoramas and w > 2 * h: + if bigger_panoramas and w > 3 * h: max_size = max_size * 4 if w > h: w = max_size |
