From 2c0b9fb84f88e8fe2eaded5847d7d4e5e5e5f03e Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 23 Jun 2019 14:02:50 -0400 Subject: [PATCH] Revert TIFF rows per strip patch --- coders/tiff.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coders/tiff.c b/coders/tiff.c index bad82b33a..90283ab43 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -3093,6 +3093,9 @@ static MagickBooleanType GetTIFFInfo(const ImageInfo *image_info, option=GetImageOption(image_info,"tiff:rows-per-strip"); if (option != (const char *) NULL) rows_per_strip=(size_t) strtol(option,(char **) NULL,10); + else + if (TIFFGetField(tiff,TIFFTAG_IMAGELENGTH,&rows_per_strip) == 0) + rows_per_strip=0; rows_per_strip=TIFFDefaultStripSize(tiff,rows_per_strip); (void) TIFFSetField(tiff,TIFFTAG_ROWSPERSTRIP,rows_per_strip); return(MagickTrue); -- 2.40.0