[FIX] use png as for pillow interchange

This commit is contained in:
Holger Brunn 2018-02-04 08:02:54 +01:00 committed by len
parent 8ac1ca8583
commit c10e84eb80

View File

@ -42,7 +42,7 @@ class IrAttachment(models.Model):
else:
image_data = StringIO()
try:
Image.open(StringIO(data)).save(image_data, 'tiff',
Image.open(StringIO(data)).save(image_data, 'png',
dpi=(dpi, dpi))
except IOError:
_logger.exception('Failed to OCR image')