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

Issues creating Png file from Psd and Ai files using Magick, will changing Settings fix them?

Apr 19, 2016 at 10:13 AM
I'm using Magick to convert Adobe files (Pdf, Ai, Psd) to Png images and it all works fine except that the Ai files can take over a minute to convert and Psd files lose their shape when converted, as the layers are laid out side by side instead of overlaying each other.
Are there changes I can make in the Settings to fix these issues?
Coordinator
Apr 24, 2016 at 11:43 AM
Edited Apr 24, 2016 at 11:44 AM
Let me first add a link to your stackoverflow post: http://stackoverflow.com/questions/36714058/issues-converting-adobe-ai-and-psd-files-using-magick and include the code from there:
MagickReadSettings settings = new MagickReadSettings();
settings.Density = new Density(300);
using (MagickImageCollection images = new MagickImageCollection())
{
    images.Read(file, settings);
    using (MagickImage horizontal = images.AppendHorizontally())
    {
        file = path + "\\" + ThumbnailFolder + "\\TempThumb.Png";
        horizontal.Write(path + "\\" + ThumbnailFolder + "\\TempThumb.Png");
    }
}
Coordinator
Apr 24, 2016 at 1:26 PM
Your AI file is probably taking that long because you specified a high density. You might get a better performance when you lower that value but that will affect the quality of your image.

The reason that you are getting the layers side by side is because you call the method AppendHorizontally. It combines the images into a side by side image.