Rewrap intelligently

This commit is contained in:
wiredfool 2015-09-13 14:16:12 +01:00
parent bb75b2d6ad
commit ca24a44100

View File

@ -1123,8 +1123,8 @@ def _save(im, fp, filename):
ifd = ImageFileDirectory_v2(prefix=prefix)
compression = im.encoderinfo.get('compression', im.info.get('compression',
'raw'))
compression = im.encoderinfo.get('compression',
im.info.get('compression', 'raw'))
libtiff = WRITE_LIBTIFF or compression != 'raw'