From: Cristy Date: Mon, 20 Aug 2018 23:28:24 +0000 (-0400) Subject: Revert patch in order to support filenames of image.jp2[1] and image.tif[0,0] X-Git-Tag: 7.0.8-11~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe4b18cfbdce85cb65806dd81e3277da15b28745;p=imagemagick Revert patch in order to support filenames of image.jp2[1] and image.tif[0,0] --- diff --git a/MagickCore/constitute.c b/MagickCore/constitute.c index ecc3bd7e3..dfe3e5133 100644 --- a/MagickCore/constitute.c +++ b/MagickCore/constitute.c @@ -619,7 +619,9 @@ MagickExport Image *ReadImage(const ImageInfo *image_info, "notify the developers",image->magick,exception->severity); if (IsBlobTemporary(image) != MagickFalse) (void) RelinquishUniqueFileResource(read_info->filename); - if (IsSceneGeometry(read_info->scenes,MagickFalse) != MagickFalse) + if (((GetNextImageInList(image) != (Image *) NULL) || + (strchr(read_info->scenes,',') != (char *) NULL)) && + (IsSceneGeometry(read_info->scenes,MagickFalse) != MagickFalse)) { Image *clones;