Skip to content

Commit

Permalink
Further fix for watermark issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Barran committed Feb 15, 2018
1 parent 9a2331e commit d50b61b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions photologue/models.py
Expand Up @@ -426,6 +426,9 @@ def create_size(self, photosize):
im_filename = getattr(self, "get_%s_filename" % photosize.name)()
try:
buffer = BytesIO()
# Issue #182 - test fix from https://github.com/bashu/django-watermark/issues/31
if im.mode.endswith('A'):
im = im.convert(im.mode[:-1])
if im_format != 'JPEG':
im.save(buffer, im_format)
else:
Expand Down

0 comments on commit d50b61b

Please sign in to comment.