diff options
| author | 2022-04-20 00:13:08 -0400 | |
|---|---|---|
| committer | 2022-04-20 00:13:08 -0400 | |
| commit | aca2787b50094a4ab1f17162aa92c5263858743e (patch) | |
| tree | c227d3a22fe454f92162d8d91ecb81f3141ace94 /nikola/image_processing.py | |
| parent | 78e717290e125cab92aef712f12ae63fedb4070f (diff) | |
| parent | 942e313727d1ad886a1024c24fe4a9e8e2e0bb3e (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.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 |
