On vendredi 2 novembre 2018 17:33:07 CET Tobias Wendorff wrote:
> Hi there,
> 
> can "gdal_translate" embedd a JPEG file in TIFF without recompression?

Yes, this is limited to a single JPEG file as a source (not a VRT of several 
JPEG files for example), and if you use -co COMPRESS=JPEG without an explicit 
-co QUALITY setting. -co TILED=YES is supported.

If you add "--debug GTiff", you'll see a "GTiff: Using special copy mode from 
a JPEG dataset" debug message when this direct mode is used.

$ gdal_translatenin.jpg out.tif -co compress=jpeg --debug GTiff
Input file size is 50, 50
GTiff: Using special copy mode from a JPEG dataset

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to