Skip to content

Commit

Permalink
Adding fix for transparent pngs
Browse files Browse the repository at this point in the history
  • Loading branch information
roccomaglio committed Jan 23, 2019
1 parent e8b1679 commit dd86ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thumbor_rekognition/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def read_jpeg_bytes(self):
"""

bio = BytesIO()
self.context.modules.engine.image.save(bio, 'JPEG')
self.context.modules.engine.image.convert('RGB').save(bio, 'JPEG')
return bio.getvalue()

def size(self):
Expand Down

0 comments on commit dd86ced

Please sign in to comment.