Windows – Why convert in ImageMagick can not convert pdf to image

conversionimagemagickpdfwindows 10

I try to convert pdf file to png image in ImageMagick from windows 10 command line as follows:

Magick convert a.pdf a.png

I get error

magick: FailedToExecuteCommand `"gswin32c.exe" -q ...

But it works for converting image to image. What is the problem?

Best Answer

ImageMagick needs Ghostscript installed in order to read PDF files.

Ghostscript is a separate project entirely. gswin32c is the 32-bit MS-Windows version of Ghostscript.

Related Question