[gdal-dev] GeoTIFF: embedd JPEG without recompression

Even Rouault even.rouault at spatialys.com
Fri Nov 2 10:40:59 PDT 2018


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


More information about the gdal-dev mailing list