rossmcm wrote:Code: Select all
convert 1.png -alpha off -fill red -opaque black -alpha on 5.png
worked fine thanks. I'm baffled by your comment that the PNG contains white lines. I certainly can't see them with Gimp.
convert 1.png -alpha off 1_aoff.png
That will remove the transparency so you can see the background image.
You can also see that from
convert 1.png -verbose info:
by looking at the histogram
idv 1.png
Image: 1.png
...
Histogram:
350: ( 0, 0, 0,255) #000000 black
325: ( 0, 0, 0, 0) #00000000 none
28: ( 0, 0, 0,159) #0000009F srgba(0,0,0,0.623529)
321: (255,255,255, 0) #FFFFFF00 srgba(255,255,255,0)
These are white pixels with full transparency.