mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-18 04:56:33 -06:00
[FIX] use png as for pillow interchange
This commit is contained in:
parent
60fb31e29f
commit
f19573a7a0
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user