From fe4b18cfbdce85cb65806dd81e3277da15b28745 Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 20 Aug 2018 19:28:24 -0400 Subject: [PATCH] Revert patch in order to support filenames of image.jp2[1] and image.tif[0,0] --- MagickCore/constitute.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.40.0