Changing a transaparent background to a fixed colour
Posted: 2009-11-30T08:06:53-07:00
Hi,
I've got a PNG with a transaparent background. I want to put the image onto a sold whitebackground. Currently I use GIMP to a white layer and then merge the layers down. I can't seem to come up with a way to do this in ImageMagick.
Something simple like:
convert -quality 75 -background #ffffff test_image.png new_image.jpg
doesn't do the job, it always ends up on a black background.
TIA
Ian
I've got a PNG with a transaparent background. I want to put the image onto a sold whitebackground. Currently I use GIMP to a white layer and then merge the layers down. I can't seem to come up with a way to do this in ImageMagick.
Something simple like:
convert -quality 75 -background #ffffff test_image.png new_image.jpg
doesn't do the job, it always ends up on a black background.
TIA
Ian