Using GraphicsMagick or ImageMagick, how do I replace transparency with a fill colour?
Fresh3 days ago
Mar 15, 202611915 viewsConfidence Score0%
0%
Problem
Using GraphicsMagick, it's fairly easy to replace one colour with transparency... Unfortunately, I can't figure out a simple way to do the exact opposite. If I have an image file with alpha-channel transparency, how do I compose it on a constant-colour background then discard the now redundant alph…
Error Output
gm convert -transparent magenta src.png dst.png
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Using GraphicsMagick or ImageMagick, how do I replace transparency with a fill colour?
Low Risk
Using GraphicsMagick, should be able to replace the first two steps in your process (for ImageMagick, it'd be instead of ). I'm not sure about the third step, but it sounds like you're just running on the image from the first two steps, so the final…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix