This project has moved. For the latest updates, please go here.

.ai being treated as .pdf

Feb 18, 2015 at 3:37 PM
Edited Feb 18, 2015 at 3:41 PM
Using the following .ai file/code:

file:
https://www.dropbox.com/s/k38poj21mcazaza/CN%20Studios%20Logo.ai?dl=0

code:
            MagickReadSettings settings = new MagickReadSettings();
            settings.ColorSpace = ColorSpace.sRGB;

            //read original
            MagickImage temp = new MagickImage(sourceFilePath, settings);

temp.Format is now equal to PDF. Shouldn't it be Ai?

Thanks
Coordinator
Feb 19, 2015 at 8:04 AM
This is happening because the AI file is read by the PDF coder. I will have to see if I can tweak this that it will report AI instead of PDF as the format. Can you allow me to use the file you provided in a unit test if I can tweak the code of ImageMagick?
Feb 19, 2015 at 1:36 PM
You can absolutely use that file. Let me know if you are unable to download it.
Coordinator
Feb 26, 2015 at 9:12 PM
Edited Feb 26, 2015 at 9:12 PM
The next version of Magick.NET will report the format as AI instead of PDF. The following unit test will make sure this is tested every release: https://magick.codeplex.com/SourceControl/changeset/37762.
Feb 26, 2015 at 9:39 PM
Great. Thanks.