Kalev, Just set the output file format to -f JPEG format ( .jpg) or -f JP2OpenJPEG (.jp2)
The JPEG format will be lossey by default. Is that what you want? See: https://medium.com/planet-stories/a-gentle-introduction-to-gdal-part-1-a3253eb96082 https://medium.com/planet-stories/a-gentle-introduction-to-gdal-part-2-map-projections-gdalwarp-e05173bd710a Doug On Thu, Jun 21, 2018 at 10:00 AM kalevj <[email protected]> wrote: > Hello, > > I used gdalwarp to transform a VRT+JPEG pair from one EPSG projection to > another. Everything worked well. This conversion changed the VRT file so > that reprojection takes place when the images are loaded. However, I would > need to reproject the JPEG so that there would not be a need to reproject > every time the images are loaded. Is it possible somehow? > > I used the command: > "gdalwarp -s_srs EPSG:2006 -t_srs EPSG:3857 -of VRT -r near old.vrt > new.vrt" > > Thanks! > > Kalev > > > > -- > Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html > _______________________________________________ > gdal-dev mailing list > [email protected] > https://lists.osgeo.org/mailman/listinfo/gdal-dev -- Doug Newcomb USFWS 551F Pylon Dr Raleigh, NC 919-856-4520 ext. 14 [email protected] --------------------------------------------------------------------------------------------------------- *NOTE: This email correspondence and any attachments to and from this sender is subject to the Freedom of Information Act (FOIA) and may be disclosed to third parties.*
_______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
