From: Cristy Date: Sun, 25 Aug 2019 12:23:12 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.8-63~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=75f907e7bff8fda1d7c20c02ca5e9b8c0cee3757;p=imagemagick ... --- diff --git a/coders/pdf.c b/coders/pdf.c index 29bc2c4b4..3d17b4e32 100644 --- a/coders/pdf.c +++ b/coders/pdf.c @@ -667,7 +667,15 @@ static Image *ReadPDFImage(const ImageInfo *image_info,ExceptionInfo *exception) } } if (pdf_info.profile != (StringInfo *) NULL) - (void) SetImageProfile(image,"xmp",pdf_info.profile,exception); + { + char + *profile; + + (void) SetImageProfile(image,"xmp",pdf_info.profile,exception); + profile=(char *) GetStringInfoDatum(pdf_info.profile); + if (strstr(profile,"Adobe Illustrator") != (char *) NULL) + (void) CopyMagickString(image->magick,"AI",MagickPathExtent); + } CleanupPDFInfo(&pdf_info); if (image_info->number_scenes != 0) {