From 75f907e7bff8fda1d7c20c02ca5e9b8c0cee3757 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 25 Aug 2019 08:23:12 -0400 Subject: [PATCH] ... --- coders/pdf.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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) { -- 2.40.0