Imagemagick convert returns “no decode delegate for this image format”

command lineimagemagick

I am trying to use this command for ImageMagick:

convert "c:\users\****\My Documents\test.png"  -transparent white   test2.png

However, I keep on getting two errors that look like this:

convert.exe: unable to open image `c:\users\****\My':  
 No such file or directory @ error/blob.c/OpenBlob/2641.

convert.exe: no decode delegate for this image format `c:\users\****\My' 
 @ error/constitute.c/ReadImage/550.

I installed ImageMagick to my c:\ directory.

What does this mean, and how can I fix it?

Best Answer

Sure looks like the space between My and Documents is being used as an argument separator by the convert program.

Not being a windows guru, I'm not sure how you'd escape the space.

Being practical, I'd say to move test.png to a directory string that contains no special characters and then running convert on it.

Related Question