]> granicus.if.org Git - imagemagick/commitdiff
Revert TIFF rows per strip patch
authorCristy <urban-warrior@imagemagick.org>
Sun, 23 Jun 2019 18:02:50 +0000 (14:02 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 23 Jun 2019 18:02:50 +0000 (14:02 -0400)
coders/tiff.c

index bad82b33a219b6c2c38a48b466eccf07c96df867..90283ab435d3ba5eacad2e75864afabb6f2f1974 100644 (file)
@@ -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);