5

I need to convert a GeoTIFF image to PNG format with "NoData" pixels in the original image being transparent in the output.

Is there any tool particularly in ArcGIS ArcToolbox or GDAL for this purpose?

5

In Windows:

for %i in (*.tif) do gdal_translate -of GTIFF -a_nodata 0 %i %~new_ndata.tif
for %i in (*.tif) do gdal_translate -of PNG -scale -co worldfile=yes %i %~cnvt.png

In bash:

for i in *.tif; do gdal_translate -of GTIFF -a_nodata 0 $i $i~new_ndata.tif; done; for i in *~new_ndata.tif; do gdal_translate -of PNG -scale -co worldfile=no $i $i~cnvt.png; done;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.