I have some binary mask image with 255 and 0 values and I want 0 values become transparent.
How can I do this?
Seems it work, but I'm not sure if it the best method:
gdal_translate -a_nodata 0 -of PNG src.png dst.png
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community