From: Cristy Date: Sat, 18 May 2019 15:05:04 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.8-46~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=13e4b956492078cc54e93aef14028c09e51855df;p=imagemagick ... --- 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