Permalink
Browse files

Why are we breaking panoramas on purpose, and in a non-configurable w…

…ay? I don't know.
  • Loading branch information...
ralsina committed May 22, 2017
1 parent d9ee04f commit f11df86a5fe63126bd84987fc068efe1a902d38c
Showing with 5 additions and 4 deletions.
  1. +1 −0 CHANGES.txt
  2. +2 −2 nikola/plugins/task/galleries.py
  3. +2 −2 nikola/plugins/task/scale_images.py
View
@@ -16,6 +16,7 @@ Features
Bugfixes
--------
+* Enable larger panorama thumbnails (Issue #2780)
* Disable ``archive_rss`` link handler, which was useless because no
such RSS was ever generated (Issue #2783)
* Ignore files ending wih "bak" (Issue #2740)
@@ -479,7 +479,7 @@ def create_target_images(self, img, input_path):
'targets': [thumb_path],
'actions': [
(self.resize_image,
- (img, thumb_path, self.kw['thumbnail_size'], False, self.kw['preserve_exif_data'],
+ (img, thumb_path, self.kw['thumbnail_size'], True, self.kw['preserve_exif_data'],
self.kw['exif_whitelist']))
],
'clean': True,
@@ -495,7 +495,7 @@ def create_target_images(self, img, input_path):
'targets': [orig_dest_path],
'actions': [
(self.resize_image,
- (img, orig_dest_path, self.kw['max_image_size'], False, self.kw['preserve_exif_data'],
+ (img, orig_dest_path, self.kw['max_image_size'], True, self.kw['preserve_exif_data'],
self.kw['exif_whitelist']))
],
'clean': True,
@@ -71,8 +71,8 @@ def process_tree(self, src, dst):
def process_image(self, src, dst, thumb):
"""Resize an image."""
- 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'])
- 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'])
+ 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'])
+ 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'])
def gen_tasks(self):
"""Copy static files into the output folder."""

0 comments on commit f11df86

Please sign in to comment.