Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f11df86

Browse files
author
Roberto Alsina
committedMay 22, 2017
Why are we breaking panoramas on purpose, and in a non-configurable way? I don't know.
1 parent d9ee04f commit f11df86

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed
 

‎CHANGES.txt

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Features
1616
Bugfixes
1717
--------
1818

19+
* Enable larger panorama thumbnails (Issue #2780)
1920
* Disable ``archive_rss`` link handler, which was useless because no
2021
such RSS was ever generated (Issue #2783)
2122
* Ignore files ending wih "bak" (Issue #2740)

‎nikola/plugins/task/galleries.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ def create_target_images(self, img, input_path):
479479
'targets': [thumb_path],
480480
'actions': [
481481
(self.resize_image,
482-
(img, thumb_path, self.kw['thumbnail_size'], False, self.kw['preserve_exif_data'],
482+
(img, thumb_path, self.kw['thumbnail_size'], True, self.kw['preserve_exif_data'],
483483
self.kw['exif_whitelist']))
484484
],
485485
'clean': True,
@@ -495,7 +495,7 @@ def create_target_images(self, img, input_path):
495495
'targets': [orig_dest_path],
496496
'actions': [
497497
(self.resize_image,
498-
(img, orig_dest_path, self.kw['max_image_size'], False, self.kw['preserve_exif_data'],
498+
(img, orig_dest_path, self.kw['max_image_size'], True, self.kw['preserve_exif_data'],
499499
self.kw['exif_whitelist']))
500500
],
501501
'clean': True,

‎nikola/plugins/task/scale_images.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ def process_tree(self, src, dst):
7171

7272
def process_image(self, src, dst, thumb):
7373
"""Resize an image."""
74-
self.resize_image(src, dst, self.kw['max_image_size'], False, preserve_exif_data=self.kw['preserve_exif_data'], exif_whitelist=self.kw['exif_whitelist'])
75-
self.resize_image(src, thumb, self.kw['image_thumbnail_size'], False, preserve_exif_data=self.kw['preserve_exif_data'], exif_whitelist=self.kw['exif_whitelist'])
74+
self.resize_image(src, dst, self.kw['max_image_size'], True, preserve_exif_data=self.kw['preserve_exif_data'], exif_whitelist=self.kw['exif_whitelist'])
75+
self.resize_image(src, thumb, self.kw['image_thumbnail_size'], True, preserve_exif_data=self.kw['preserve_exif_data'], exif_whitelist=self.kw['exif_whitelist'])
7676

7777
def gen_tasks(self):
7878
"""Copy static files into the output folder."""

0 commit comments

Comments
 (0)
Please sign in to comment.