How to use imageMagick with c #

Could you please explain how I can use ImageMagick with C #. I am trying to convert pdf to pages in images.

I want to run the imageMagick command "convert -density 300 $ input.pdf $ output.png"

+7
source share
2 answers
string arguments = string.Format(@"-density 300 {0}.pdf {1}.png", intputFileName, outputFileName"); var startInfo = new ProcessStartInfo { Arguments = arguments, Filename = @"C:\path\to\imagick\convert.exe" }; Process.Start(startInfo).WaitForExit(); 

Literature:

+8
source

It is better to use Magick.NET, there is no need to install ImageMagick on clients: http://magick.codeplex.com/

+3
source

All Articles