mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 01:34:24 +03:00
Renamed "tile_args" to "args" for consistency with existing ImageFile variable
This commit is contained in:
parent
69b922d138
commit
5e9a2e3000
|
@ -212,7 +212,7 @@ class _Tile(NamedTuple):
|
||||||
encoder_name: str
|
encoder_name: str
|
||||||
extents: tuple[int, int, int, int]
|
extents: tuple[int, int, int, int]
|
||||||
offset: int
|
offset: int
|
||||||
tile_args: tuple
|
args: tuple
|
||||||
|
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
|
|
|
@ -523,10 +523,10 @@ def _save(im, fp, tile, bufsize=0):
|
||||||
|
|
||||||
|
|
||||||
def _encode_tile(im, fp, tile: list[Image._Tile], bufsize, fh, exc=None):
|
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:
|
if offset > 0:
|
||||||
fp.seek(offset)
|
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:
|
try:
|
||||||
encoder.setimage(im.im, extents)
|
encoder.setimage(im.im, extents)
|
||||||
if encoder.pushes_fd:
|
if encoder.pushes_fd:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user