Skip to content

Commit 6565d5b

Browse files
authored
Merge pull request #5517 from kmilos/patch-1
Explicitly enable strip chopping for large uncompressed TIFFs
2 parents aa287bc + fa66d15 commit 6565d5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libImaging/TiffDecode.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ ImagingLibTiffDecode(
543543
Imaging im, ImagingCodecState state, UINT8 *buffer, Py_ssize_t bytes) {
544544
TIFFSTATE *clientstate = (TIFFSTATE *)state->context;
545545
char *filename = "tempfile.tif";
546-
char *mode = "r";
546+
char *mode = "rC";
547547
TIFF *tiff;
548548
uint16_t photometric = 0; // init to not PHOTOMETRIC_YCBCR
549549
uint16_t compression;

0 commit comments

Comments
 (0)