c# - Issues converting Adobe Ai and Psd files using Magick -
i'm using magick convert adobe files (pdf, ai, psd) png images , works fine except ai files can take on minute convert , psd files lose shape when converted, layers laid out side side instead of overlaying each other. code using..
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"); } }
are there changes can make in settings fix these issues?
i've had fix issue want share in case has similar problem. firstly .ai files taking long because of detailed resolution set out in settings, reduce resolution , created faster. secondly, psd files being created because i'm appending them using horizontal method. when changed code code below worked.
using (magickimagecollection images = new magickimagecollection()) { images.read(file, settings); images.write(path + "\\" + thumbnailfolder + "\\tempthumb.png"); }
Comments
Post a Comment