aboutsummaryrefslogtreecommitdiffstats
path: root/nikola/image_processing.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2022-04-20 00:13:08 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2022-04-20 00:13:08 -0400
commitaca2787b50094a4ab1f17162aa92c5263858743e (patch)
treec227d3a22fe454f92162d8d91ecb81f3141ace94 /nikola/image_processing.py
parent78e717290e125cab92aef712f12ae63fedb4070f (diff)
parent942e313727d1ad886a1024c24fe4a9e8e2e0bb3e (diff)
Update upstream source from tag 'upstream/8.2.0'
Update to upstream version '8.2.0' with Debian dir 65d01d7d78d6b41c0be6eb196ed84354526f9384
Diffstat (limited to 'nikola/image_processing.py')
-rw-r--r--nikola/image_processing.py4
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