I'm trying to find the best way to deal with bad colors being input..
For example:
# convert -fill darkgold label:Test test.gif
convert: unable to open image 'darkgold': No such file or directory @ error/blob.c/OpenBlob/3497.
convert: no decode delegate for this image format `' @ error/constitute.c/ReadImage/556.
or
convert -fill '#00000' label:Test test.gif
convert: unable to open image '#00000': No such file or directory @ error/blob.c/OpenBlob/3497.
convert: no decode delegate for this image format `' @ error/constitute.c/ReadImage/556.
it seems that fill can be a color or image file?
Can I tell IM to expect a color? Or, any suggestions?
Handling bad color names/numbers..
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Handling bad color names/numbers..
Code: Select all
convert -fill "#000000" label:test test.gif
There is no darkgold at https://imagemagick.org/script/color.php. But there is a dark goldenrod