[gdal-dev] warp ARGB -> RGB gtiff-jpeg?

Idan Miara idan at miara.com
Sat Feb 20 10:42:51 PST 2021


Hi All,

Is it possible to use gdal_warp for warping the RGB bands of an ARGB raster
as gtiff with jpeg compression (i.e. to drop the Alpha channel and
transform CRS). ?

gdal_transalte has translate_options["bandList"] = [1, 2, 3] for that, but
I can't find the equivalent for warp.

I could do it in two steps - save as a lossless gtiff and then use
gdal_transalte to make a jpeg-gtiff. Or use gdal_trasnlate to make a 3 band
lossless gtiff and then wrap it.

Can I do it in one step without an intermediate file?

Regards,
Idan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210220/4912faf6/attachment.html>


More information about the gdal-dev mailing list