mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
Clarify variable names in TiffImagePlugin
Co-authored-by: Yay295 <Yay295@users.noreply.github.com>
This commit is contained in:
parent
6f79e653d6
commit
8e18415cc5
|
@ -1845,13 +1845,13 @@ def _save(im, fp, filename):
|
|||
e.setimage(im.im, (0, 0) + im.size)
|
||||
while True:
|
||||
# undone, change to self.decodermaxblock:
|
||||
l, s, d = e.encode(16 * 1024)
|
||||
length, error_code, chunk = e.encode(16 * 1024)
|
||||
if not _fp:
|
||||
fp.write(d)
|
||||
if s:
|
||||
fp.write(chunk)
|
||||
if error_code:
|
||||
break
|
||||
if s < 0:
|
||||
msg = f"encoder error {s} when writing image file"
|
||||
if error_code < 0:
|
||||
msg = f"encoder error {error_code} when writing image file"
|
||||
raise OSError(msg)
|
||||
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user