Skip to content

Commit

Permalink
Merge pull request #2 from kroman0/master
Browse files Browse the repository at this point in the history
Generate Progressive JPEG
  • Loading branch information
kroman0 committed Aug 20, 2013
2 parents b25dfc4 + 60d9539 commit 22142af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion docs/changes.rst
Expand Up @@ -5,7 +5,8 @@ Changelog
1.3.3 (unreleased)
------------------

- Nothing changed yet.
- Generate Progressive JPEG.
[kroman0]


1.3.2 (2013-05-23)
Expand Down
4 changes: 2 additions & 2 deletions plone/scale/scale.py
Expand Up @@ -40,10 +40,10 @@ def scaleImage(image, width=None, height=None, direction="down",

if result is None:
result=StringIO()
image.save(result, format, quality=quality, optimize=True)
image.save(result, format, quality=quality, optimize=True, progressive=True)
result=result.getvalue()
else:
image.save(result, format, quality=quality, optimize=True)
image.save(result, format, quality=quality, optimize=True, progressive=True)
result.seek(0)

return result, format, image.size
Expand Down

0 comments on commit 22142af

Please sign in to comment.