Converting transparent PNG to Jpeg
Posted: 2007-02-01T09:25:26-07:00
Hi! I'm using ImageMagick 6.3.2 with the MagickWand-API and I had troubles to convert and resize a partially transparent png to an jpg-file.
I tried the command line tools and the same things happend.
convert png.png png.jpg
--> a jpg-file is created and the transparent area is white
convert png.png -resize 500x400 png_small.jpg
--> a jpg-file in the right dimension is generated and the transparent area is black
What settings do i have to set if i want transparent areas always to be white?
thanks in advance
richard
PS: you can find the files:
http://www.werk3at.net/rol/png.png
http://www.werk3at.net/rol/png.jpg
http://www.werk3at.net/rol/png_small.jpg
I tried the command line tools and the same things happend.
convert png.png png.jpg
--> a jpg-file is created and the transparent area is white
convert png.png -resize 500x400 png_small.jpg
--> a jpg-file in the right dimension is generated and the transparent area is black
What settings do i have to set if i want transparent areas always to be white?
thanks in advance
richard
PS: you can find the files:
http://www.werk3at.net/rol/png.png
http://www.werk3at.net/rol/png.jpg
http://www.werk3at.net/rol/png_small.jpg