Converting PNG to JPEG - black background
Posted: 2013-09-06T15:57:57-07:00
Folks !
When I use this simplest command to convert from PNG to JPEG I get a large black area in JPEG file.
convert 10.png 10.jpg
These images are available here:
http://www.metarmap.com/outgoing/10.png
http://www.metarmap.com/outgoing/10.jpg
PNG image is a tile generated using gdal2tile command with nodata value = 51, 51 51.
Tile rendering software handles PNG tiles fine but has large black area when using JPEG tiles.
Whats the correct command to convert above PNG to JPG so the white/transparent area in PNG file is cutout from image ie JPEG file has no black area at all ?
thanks,
-Sanjay
When I use this simplest command to convert from PNG to JPEG I get a large black area in JPEG file.
convert 10.png 10.jpg
These images are available here:
http://www.metarmap.com/outgoing/10.png
http://www.metarmap.com/outgoing/10.jpg
PNG image is a tile generated using gdal2tile command with nodata value = 51, 51 51.
Tile rendering software handles PNG tiles fine but has large black area when using JPEG tiles.
Whats the correct command to convert above PNG to JPG so the white/transparent area in PNG file is cutout from image ie JPEG file has no black area at all ?
thanks,
-Sanjay