mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
Merge pull request #5517 from kmilos/patch-1
Explicitly enable strip chopping for large uncompressed TIFFs
This commit is contained in:
commit
6565d5b1f3
|
@ -543,7 +543,7 @@ ImagingLibTiffDecode(
|
||||||
Imaging im, ImagingCodecState state, UINT8 *buffer, Py_ssize_t bytes) {
|
Imaging im, ImagingCodecState state, UINT8 *buffer, Py_ssize_t bytes) {
|
||||||
TIFFSTATE *clientstate = (TIFFSTATE *)state->context;
|
TIFFSTATE *clientstate = (TIFFSTATE *)state->context;
|
||||||
char *filename = "tempfile.tif";
|
char *filename = "tempfile.tif";
|
||||||
char *mode = "r";
|
char *mode = "rC";
|
||||||
TIFF *tiff;
|
TIFF *tiff;
|
||||||
uint16_t photometric = 0; // init to not PHOTOMETRIC_YCBCR
|
uint16_t photometric = 0; // init to not PHOTOMETRIC_YCBCR
|
||||||
uint16_t compression;
|
uint16_t compression;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user