Search code examples
windowscommand-lineimagemagickimagemagick-convert

Why convert in ImageMagick not working


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

convert a.pdf a.png

But I get error: Invalid Parameter - a.png. I'd like to know why. ImageMagick has been installed correctly as magick wizard.jpg win: popup an image.


Solution

  • convert might be another command on Windows (see convert issue)

    Note also that starting from version 7

    The "magick" command is the new primary command of the Shell API, replacing the old "convert" command.

    (from https://imagemagick.org/script/porting.php)

    so you should use:

    magick a.pdf a.png