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 9: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?
Apr 24, 2016 at 10:43 AM
Edited Apr 24, 2016 at 10:44 AM
Let me first add a link to your stackoverflow post: 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");
Apr 24, 2016 at 12: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.