Skip to content

Commit 8bdcadc

Browse files
committed
Renamed argument to big_tiff
1 parent 2ac3830 commit 8bdcadc

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Tests/test_file_tiff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def test_bigtiff(self, tmp_path: Path) -> None:
117117

118118
def test_bigtiff_save(self, tmp_path: Path) -> None:
119119
outfile = str(tmp_path / "temp.tif")
120-
hopper().save(outfile, bigtiff=True)
120+
hopper().save(outfile, big_tiff=True)
121121

122122
with Image.open(outfile) as im:
123123
assert im.tag_v2._bigtiff is True

docs/handbook/image-file-formats.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ The :py:meth:`~PIL.Image.Image.save` method can take the following keyword argum
12081208

12091209
.. versionadded:: 8.4.0
12101210

1211-
**bigtiff**
1211+
**big_tiff**
12121212
If true, the image will be saved as a BigTIFF.
12131213

12141214
**compression**

src/PIL/TiffImagePlugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,7 @@ def _save(im: Image.Image, fp: IO[bytes], filename: str | bytes) -> None:
16911691
encoderconfig = im.encoderconfig
16921692

16931693
ifd = ImageFileDirectory_v2(prefix=prefix)
1694-
if encoderinfo.get("bigtiff"):
1694+
if encoderinfo.get("big_tiff"):
16951695
ifd._bigtiff = True
16961696

16971697
try:

0 commit comments

Comments
 (0)