[magick-users] shell script problem
Illtud Daniel
illtud.daniel at llgc.org.uk
Wed Jan 24 11:07:12 CST 2007
Yuval Levy wrote:
> #!/bin/sh
> convert -size 600x600 xc:none -fill #000000 -draw "circle 300,300, 0,300"
> circle.png
[]
> convert: no encode delegate for this image format `-fill'.
> convert: no encode delegate for this image format `-fill'.
>
> when I run the individual commands manually each of them works as expected.
# is a comment indicator in a bash script, so bash doesn't
see anything after the # you've got in those two lines.
Put the color value in quotes to get round this:
#!/bin/bash
convert -size 600x600 xc:none -fill '#000000' -draw "circle 300,300,
0,300" circle.jpg
etc.
--
Illtud Daniel illtud.daniel at llgc.org.uk
Uwch Ddadansoddwr Systemau Senior Systems Analyst
Llyfrgell Genedlaethol Cymru National Library of Wales
Yn siarad drosof fy hun, nid LlGC - Speaking personally, not for NLW
More information about the Magick-users
mailing list