Skip to content

Commit

Permalink
Use PNGs for sized images
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Jan 8, 2017
1 parent b34dfd2 commit d606c6c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memegen/domain/image.py
Expand Up @@ -121,7 +121,7 @@ def _generate(top, bottom, font, background, width, height):
if width and height:
base_width, base_height = image.size
padding = ImageFile.new('RGBA', (width, height), (0, 0, 0))
padding.format = 'JPEG'
padding.format = 'PNG'
padding_width, padding_height = padding.size
offset = ((padding_width - base_width) // 2,
(padding_height - base_height) // 2)
Expand Down
Binary file modified tests/examples/size-both.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d606c6c

Please sign in to comment.