Renamed "tile_args" to "args" for consistency with existing ImageFile variable

This commit is contained in:
Andrew Murray 2023-10-17 19:10:24 +11:00
parent 69b922d138
commit 5e9a2e3000
2 changed files with 3 additions and 3 deletions

View File

@ -212,7 +212,7 @@ class _Tile(NamedTuple):
encoder_name: str
extents: tuple[int, int, int, int]
offset: int
tile_args: tuple
args: tuple
# --------------------------------------------------------------------

View File

@ -523,10 +523,10 @@ def _save(im, fp, tile, bufsize=0):
def _encode_tile(im, fp, tile: list[Image._Tile], bufsize, fh, exc=None):
for encoder_name, extents, offset, tile_args in tile:
for encoder_name, extents, offset, args in tile:
if offset > 0:
fp.seek(offset)
encoder = Image._getencoder(im.mode, encoder_name, tile_args, im.encoderconfig)
encoder = Image._getencoder(im.mode, encoder_name, args, im.encoderconfig)
try:
encoder.setimage(im.im, extents)
if encoder.pushes_fd: