mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-14 19:36:38 +03:00
s/tabs/spaces/
This commit is contained in:
parent
a4a856b58a
commit
7200c40ada
|
@ -562,9 +562,9 @@ def _save(im, fp, filename):
|
||||||
if "optimize" in info:
|
if "optimize" in info:
|
||||||
bufsize = im.size[0]*im.size[1]
|
bufsize = im.size[0]*im.size[1]
|
||||||
|
|
||||||
# The exif info needs to be written as one block. Ensure that our buffer is big enough
|
# The exif info needs to be written as one block. Ensure that our buffer is big enough
|
||||||
if len(info.get("exif",b"")) > max(ImageFile.MAXBLOCK, bufsize):
|
if len(info.get("exif",b"")) > max(ImageFile.MAXBLOCK, bufsize):
|
||||||
bufsize = 2*len(info.get("exif",b""))
|
bufsize = 2*len(info.get("exif",b""))
|
||||||
|
|
||||||
ImageFile._save(im, fp, [("jpeg", (0,0)+im.size, 0, rawmode)], bufsize)
|
ImageFile._save(im, fp, [("jpeg", (0,0)+im.size, 0, rawmode)], bufsize)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user