From 13e4b956492078cc54e93aef14028c09e51855df Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 18 May 2019 11:05:04 -0400 Subject: [PATCH] ... --- ChangeLog | 3 ++- coders/heic.c | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 162191364..45e7e043d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,9 +1,10 @@ 2019-05-14 7.0.8-46 Cristy - * Release ImageMagick version 7.0.8-46, GIT revision 15652:de499f5d0:20190518 + * Release ImageMagick version 7.0.8-46, GIT revision 15653:8aaf72400:20190518 2019-05-14 7.0.8-46 Cristy * PerlMagick unit tests pass again. * Builds under MacOS X and FreeBSD works again. + * Return HEIC images in the sRGB colorspace. 2019-05-12 7.0.8-45 Cristy * Release ImageMagick version 7.0.8-45, GIT revision 15634:784105bcb:20190512 diff --git a/coders/heic.c b/coders/heic.c index d6b47c0eb..a0c0c2547 100644 --- a/coders/heic.c +++ b/coders/heic.c @@ -142,6 +142,9 @@ static Image *ReadHEICImage(const ImageInfo *image_info, const char *option; + const StringInfo + *profile; + heif_item_id exif_id; @@ -394,6 +397,9 @@ static Image *ReadHEICImage(const ImageInfo *image_info, heif_image_release(heif_image); heif_image_handle_release(image_handle); heif_context_free(heif_context); + profile=GetImageProfile(image,"icc"); + if (profile != (const StringInfo *) NULL) + (void) TransformImageColorspace(image,sRGBColorspace,exception); return(GetFirstImageInList(image)); } #endif -- 2.40.0