From 82a1df80b2b3ab19b215b1ebeba3a04ce3e472ae Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 9 Jul 2016 09:54:12 -0400 Subject: [PATCH] https://www.imagemagick.org/discourse-server/viewtopic.php?f=2&t=30043 --- MagickCore/constitute.c | 1 - MagickCore/stream.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/MagickCore/constitute.c b/MagickCore/constitute.c index e9b45c6d1..79a5a8030 100644 --- a/MagickCore/constitute.c +++ b/MagickCore/constitute.c @@ -227,7 +227,6 @@ MagickExport Image *PingImage(const ImageInfo *image_info, if (image != (Image *) NULL) { ResetTimer(&image->timer); - InitializePixelChannelMap(image); if (ping_info->verbose != MagickFalse) (void) IdentifyImage(image,stdout,MagickFalse,exception); } diff --git a/MagickCore/stream.c b/MagickCore/stream.c index a0e1d5d8e..88d439cd6 100644 --- a/MagickCore/stream.c +++ b/MagickCore/stream.c @@ -1010,6 +1010,8 @@ MagickExport Image *ReadStream(const ImageInfo *image_info,StreamHandler stream, SetPixelCacheMethods(read_info->cache,&cache_methods); read_info->stream=stream; image=ReadImage(read_info,exception); + if (image != (Image *) NULL) + InitializePixelChannelMap(image); read_info=DestroyImageInfo(read_info); return(image); } -- 2.40.0