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?
foreground
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: foreground
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
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.
I just discovered by trial and error (for lack of good documentation), that -fill green does the trick.
Thanks for the reply.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: foreground
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.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.
Last edited by fmw42 on 2012-04-18T19:54:05-07:00, edited 1 time in total.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: foreground
-foreground is a "display" option only!
As in the foreground color of X window menus!
Damn these limited option explainations!
As in the foreground color of X window menus!
Damn these limited option explainations!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: foreground
Yes it would have helped if there was a [Display] on the right side of the options definition.anthony wrote:-foreground is a "display" option only!
As in the foreground color of X window menus!
Damn these limited option explainations!
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: foreground
DONE (both IMv6 and IMv7 option files) -- give it a bit of time to update
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: foreground
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.
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.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: foreground
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
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
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/