[gdal-dev] PNG image set background transparent

2022-10-03 Thread liglio.pessoal
Hi, I have a PNG image RGB (3-band), and I want to set the background transparent. How do I do it using GDAL ? Regards, Liglio ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] PNG image set background transparent

2022-10-04 Thread Paul Harwood
I have never tried it but I think this may be what you are looking for (with the -setalpha flag) https://gdal.org/programs/nearblack.html#nearblack On Mon, 3 Oct 2022 at 21:23, wrote: > Hi, > > > > I have a PNG image RGB (3-band), and I want to set the background > transparent. How do I do it