Renamed argument to big_tiff

This commit is contained in:
Andrew Murray 2024-12-31 10:16:00 +11:00
parent 2ac383028a
commit 8bdcadcbe9
3 changed files with 3 additions and 3 deletions

View File

@ -117,7 +117,7 @@ class TestFileTiff:
def test_bigtiff_save(self, tmp_path: Path) -> None:
outfile = str(tmp_path / "temp.tif")
hopper().save(outfile, bigtiff=True)
hopper().save(outfile, big_tiff=True)
with Image.open(outfile) as im:
assert im.tag_v2._bigtiff is True

View File

@ -1208,7 +1208,7 @@ The :py:meth:`~PIL.Image.Image.save` method can take the following keyword argum
.. versionadded:: 8.4.0
**bigtiff**
**big_tiff**
If true, the image will be saved as a BigTIFF.
**compression**

View File

@ -1691,7 +1691,7 @@ def _save(im: Image.Image, fp: IO[bytes], filename: str | bytes) -> None:
encoderconfig = im.encoderconfig
ifd = ImageFileDirectory_v2(prefix=prefix)
if encoderinfo.get("bigtiff"):
if encoderinfo.get("big_tiff"):
ifd._bigtiff = True
try: