[Gdal-dev] gdal_translate question
Tyler Mitchell
tylermitchell at shaw.ca
Wed Jul 27 18:34:20 EDT 2005
Matt,
I haven't tried it before but what about the -a_nodata parameter?
e.g. gdal_translate -of "PNG" -a_nodata 0 input.tif output.png
??
Tyler
----
Matt wrote:
I was wondering if there is a way to either specify a
pixel value of 0 as being transparent when using
gdal_translate to create a PNG output file from a TIF,
or if an alpha band can be added under the same
circumstance. Any advice in this area is greatly
appreciated!
More information about the Gdal-dev
mailing list