From 0fa81b91f339ac0dddcd5fee142e9751d6fa9d2a Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 22 Dec 2017 15:35:43 -0500 Subject: [PATCH] ... --- MagickCore/identify.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/MagickCore/identify.c b/MagickCore/identify.c index b986b7151..5b19ad459 100644 --- a/MagickCore/identify.c +++ b/MagickCore/identify.c @@ -723,6 +723,13 @@ MagickExport MagickBooleanType IdentifyImage(Image *image,FILE *file, } (void) FormatLocaleFile(file," Units: %s\n",CommandOptionToMnemonic( MagickResolutionOptions,(ssize_t) image->units)); + colorspace=GetImageColorspaceType(image,exception); + (void) FormatLocaleFile(file," Colorspace: %s\n",CommandOptionToMnemonic( + MagickColorspaceOptions,(ssize_t) colorspace)); + if (colorspace != image->colorspace) + (void) FormatLocaleFile(file," Base colorspace: %s\n", + CommandOptionToMnemonic(MagickColorspaceOptions,(ssize_t) + image->colorspace)); type=GetImageType(image); (void) FormatLocaleFile(file," Type: %s\n",CommandOptionToMnemonic( MagickTypeOptions,(ssize_t) type)); @@ -734,13 +741,6 @@ MagickExport MagickBooleanType IdentifyImage(Image *image,FILE *file, /* Detail channel depth and extrema. */ - colorspace=GetImageColorspaceType(image,exception); - (void) FormatLocaleFile(file," Colorspace: %s\n",CommandOptionToMnemonic( - MagickColorspaceOptions,(ssize_t) colorspace)); - if (colorspace != image->colorspace) - (void) FormatLocaleFile(file," Base colorspace: %s\n", - CommandOptionToMnemonic(MagickColorspaceOptions,(ssize_t) - image->colorspace)); channel_statistics=(ChannelStatistics *) NULL; channel_moments=(ChannelMoments *) NULL; channel_phash=(ChannelPerceptualHash *) NULL; -- 2.40.0