From 62364662e339d31c83fd1fb9cfa32188751ec4af Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 17 Dec 2018 15:21:19 -0500 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick6/issues/25 --- MagickCore/profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MagickCore/profile.c b/MagickCore/profile.c index e7aeb66b9..60b1b00d8 100644 --- a/MagickCore/profile.c +++ b/MagickCore/profile.c @@ -957,6 +957,7 @@ MagickExport MagickBooleanType ProfileImage(Image *image,const char *name, #if defined(LCMSHDRI) source_scale=1.0; #endif + source_colorspace=sRGBColorspace; source_channels=3; switch (cmsGetColorSpace(source_profile)) { @@ -1034,7 +1035,6 @@ MagickExport MagickBooleanType ProfileImage(Image *image,const char *name, ThrowProfileException(ImageError, "ColorspaceColorProfileMismatch",name); } - (void) source_colorspace; signature=cmsGetPCS(source_profile); if (target_profile != (cmsHPROFILE) NULL) signature=cmsGetColorSpace(target_profile); -- 2.40.0