[gdal-dev] PNG image set background transparent

Paul Harwood runette at gmail.com
Tue Oct 4 08:48:42 PDT 2022


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, <liglio.pessoal at nexxa.com.br> wrote:

> 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 at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20221004/aed4888d/attachment.htm>


More information about the gdal-dev mailing list