Page 1 of 1
foreground
Posted: 2012-04-18T15:45:48-07:00
by red911
I'm using convert v6.0.7 and this simple command-line command fails:
"convert -foreground green input.png output.png" with this error:
"convert: unrecognized option `-foreground'.
The exact version information is
Version: ImageMagick 6.0.7 05/28/10 Q16
http://www.imagemagick.org
Copyright: Copyright (C) 1999-2004 ImageMagick Studio LLC
Has the -foreground flag been deprecated? Is there a new syntax or terminology?
Re: foreground
Posted: 2012-04-18T16:06:14-07:00
by fmw42
red911 wrote:I'm using convert v6.0.7 and this simple command-line command fails:
"convert -foreground green input.png output.png" with this error:
"convert: unrecognized option `-foreground'.
The exact version information is
Version: ImageMagick 6.0.7 05/28/10 Q16
http://www.imagemagick.org
Copyright: Copyright (C) 1999-2004 ImageMagick Studio LLC
Has the -foreground flag been deprecated? Is there a new syntax or terminology?
It has not been deprecated to my knowledge. See
http://www.imagemagick.org/script/comma ... foreground
However, I am getting the same error message in IM 6.7.6.6 Q16 Mac OSX Snow Leopard when I try
convert logo: -foreground green logo_tmp.png
However, I have not use -foreground before. It is a setting and will not by itself change the image.
What is it exactly that you are trying to achieve?
Re: foreground
Posted: 2012-04-18T16:13:22-07:00
by red911
I'm trying to control the color of text labels in an image.
I just discovered by trial and error (for lack of good documentation), that -fill green does the trick.
Thanks for the reply.
Re: foreground
Posted: 2012-04-18T16:56:41-07:00
by fmw42
red911 wrote:I'm trying to control the color of text labels in an image.
I just discovered by trial and error (for lack of good documentation), that -fill green does the trick.
Thanks for the reply.
Yes, -fill is what is supposed to be used when using -draw to make text. Other text functions such as label: and caption: use -background.
Re: foreground
Posted: 2012-04-18T19:44:46-07:00
by anthony
-foreground is a "display" option only!
As in the foreground color of X window menus!
Damn these limited option explainations!
Re: foreground
Posted: 2012-04-18T19:55:20-07:00
by fmw42
anthony wrote:-foreground is a "display" option only!
As in the foreground color of X window menus!
Damn these limited option explainations!
Yes it would have helped if there was a [Display] on the right side of the options definition.
Re: foreground
Posted: 2012-04-18T20:03:27-07:00
by anthony
DONE (both IMv6 and IMv7 option files) -- give it a bit of time to update
Re: foreground
Posted: 2012-04-19T12:53:14-07:00
by red911
Thanks guys,
Oddly, the current online documentation for -draw refers to -fill as examples for the sytax to set the color. It ought also say BTW "Use -fill to set the color". Job done.
Re: foreground
Posted: 2012-04-19T16:14:42-07:00
by anthony
Exactly where?
Note if you want to 'fill with a tile' you can do that too! but not all operators understand this.
-annotate does as does -draw