Replies: 2 comments 3 replies
-
The "-colorize" operation uses the "-fill" color setting, but "-fill" doesn't affect the background operations. The "-background" sets a color to use as a background when needed for certain append, extent, splice, etc. operations. To get your font red and your background green, try something like thjis..
|
Beta Was this translation helpful? Give feedback.
-
That is because you have specified a green colour for the extent:
In your case, |
Beta Was this translation helpful? Give feedback.
-
ImageMagick version
7.1.1 Latest
Operating system, version and so on
Windows 11
Description
I'm trying to find a way to change a Font Awesome SVG in to a PNG with both a background and a fill. My main command is:
mogrify -format png -path "Converted" -gravity center -size 40x40 -extent 40x40 [BACKGROUND, FILL, AND COLORIZE HERE] .
Now here's the different background, fill and colorize arguments I've used and their result (1BFF00 is green, FF0000 is red):
-background none -fill #FF0000 | This was a test - the fill colour didn't apply
-background none -fill #FF0000 -colorize 100 | This was a test - the fill colour worked and the icon is red
-background 1BFF00 -colorize 50 -fill #FF0000 -colorize 50 | This was a test - each colour can be seen at its 50% opacity
-background 1BFF00 -colorize 100 -fill #FF0000 | Green image
-background 1BFF00 -colorize 100 -fill #FF0000 -colorize 100 | Red image
-background 1BFF00 -fill #FF0000 | The background worked but the fill didn't
-background 1BFF00 -fill #FF0000 -colorize 100 | Red image
I've tried the documentation, Google, and searching here, and I am at a loss of how to comine background and fill.
Thanks for any help.
Beta Was this translation helpful? Give feedback.
All reactions