]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sun, 25 Aug 2019 12:23:12 +0000 (08:23 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 25 Aug 2019 12:23:12 +0000 (08:23 -0400)
coders/pdf.c

index 29bc2c4b48bb19629e3b66ded14a261f849ac99a..3d17b4e320103eeacd99eedf099f1b1d7a76c773 100644 (file)
@@ -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)
     {