Reputation: 38
I am trying to create a caption in imagemagick using the following command:
convert -background white -fill black -font Agency-FB -size 465x247 caption:'This is a test' test.png
And am receiving the following error
convert: unable to open image 'is': No such file or directory @ error/blob.c/OpenBlob/3527.
convert: no decode delegate for this image format `' @ error/constitute.c/ReadImage/737.
convert: unable to open image 'a': No such file or directory @ error/blob.c/OpenBlob/3527.
convert: unable to open image 'a': No such file or directory @ error/blob.c/OpenBlob/3527.
convert: no decode delegate for this image format `' @ error/constitute.c/ReadImage/737.
convert: unable to open image 'test'': No such file or directory @ error/blob.c/OpenBlob/3527.
convert: unable to open image 'test'': No such file or directory @ error/blob.c/OpenBlob/3527.
convert: no decode delegate for this image format `' @ error/constitute.c/ReadImage/737.
Meanwhile imagemagick spits out an image that is white with black text, and the correct dimensions, with the text
'This
Can someone help me figure out what I'm doing wrong here?
Upvotes: 0
Views: 54
Reputation: 38
Per the comments, changing the command to
magick -background white -fill black -font Agency-FB -size 465x247 caption:"This is a test" test.png
Using the updated call from v7 of Imagemagick as well as double quotes instead of single quotes fixed the issue entirely.
Upvotes: 0