User Tools

Site Tools


tools:graphicsmagick:color-replace

GraphicsMagick Color Replace

PMC Editing Wiki: Tools GraphicsMagick

2021-12-26

Command is -fill RGB_DESTINATION -opaque RGB_SOURCE.

This example replaces 255,255,255 (white) with 0,0,0 (black):

rem vte_grass
gm convert source.png -fill "rgb(0, 0, 0)" -opaque "rgb(255, 255, 255)" destination.bmp

However if your source image has transparent background and you do -opaque “rgb(0, 0, 0)” it will use the transparent background. GraphicsMagick thinks RGB 0,0,0 is transparent ;)

tools/graphicsmagick/color-replace.txt · Last modified: 2022/04/11 03:06 by snakeman

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

All PMC web site download services are temporarily suspended until web site yearly fees have been recovered, want to download addons/mods? Then Support PMC.

If you are grateful for all the work PMC has done in the past 25 years, use Support PMC page.