[gdal-dev] warp ARGB -> RGB gtiff-jpeg?
jratike80
jukka.rahkonen at maanmittauslaitos.fi
Sat Feb 20 13:51:55 PST 2021
Hi,
It is very cheap to use gdal_translate and VRT as intermediate format. As
far as I know it is not possible to drop alpha with gdalwarp even it is
possible to add alpha -dstalpha.
-Jukka Rahkonen-
Idan Miara wrote
> 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.
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at .osgeo
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
More information about the gdal-dev
mailing list