1

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
PolyGeo
  • 65,136
  • 29
  • 109
  • 338
mrgloom
  • 621
  • 1
  • 8
  • 18

0 Answers0