Skip to content

Commit

Permalink
My bad! Fixed stupid bug in iamge resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Jul 20, 2016
1 parent e0b6671 commit 13c9a28
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGES.txt
@@ -1,3 +1,11 @@
New in master
=============

Bugfixes
--------

* Brown bag bug in image resizing (ralsina says my fault!)

New in v7.7.10
==============

Expand Down
2 changes: 1 addition & 1 deletion nikola/image_processing.py
Expand Up @@ -99,7 +99,7 @@ def resize_image(self, src, dst, max_size, bigger_panoramas=True, preserve_exif_
self.resize_svg(src, dst, max_size, bigger_panoramas)
return
im = Image.open(src)
w, h = im.size
size = w, h = im.size
if w > max_size or h > max_size:
size = max_size, max_size

Expand Down

0 comments on commit 13c9a28

Please sign in to comment.