From: Cristy Date: Tue, 12 Jun 2018 22:37:36 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1147 X-Git-Tag: 7.0.8-0~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a38e2b4ff95f80bd15606af8598a9c72deac03c;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1147 --- diff --git a/coders/png.c b/coders/png.c index 8b84a83ef..fe14a93bf 100644 --- a/coders/png.c +++ b/coders/png.c @@ -1952,8 +1952,10 @@ static void read_eXIf_chunk(Image *image,png_struct *ping,png_info *info, png_bytep data; +#if PNG_LIBPNG_VER > 10631 if (png_get_eXIf_1(ping,info,&size,&data)) (void) PNGSetExifProfile(image,size,data,exception); +#endif } #endif