[gdal-dev] How to copy the EXIF metadata?

Even Rouault even.rouault at spatialys.com
Thu Aug 2 13:28:46 PDT 2018


On jeudi 2 août 2018 20:17:53 CEST Rahkonen Jukka (MML) wrote:
> Hi,
> 
> Referring to this question on gis.stackexchange
> https://gis.stackexchange.com/questions/291554/how-to-retrieve-exif-tags-fr
> om-a-geotiff-with-gdal.
> 
> The GTiff driver manual https://www.gdal.org/frmt_gtiff.html informs me that
> "Starting with GDAL 1.10, EXIF metadata can be extracted from the file, and
> will be stored the EXIF metadata domain"  but is there any example about
> how to do it? I had a try by downloading  this image from GDAL autotests
> https://raw.githubusercontent.com/OSGeo/gdal/master/autotest/gcore/data/exi
> f_and_gps.tif.
> 
> If I run
> gdal_translate -of GTiff exif_and_gps.tif exif_and_gps_copy.tif
> 
> and test the result with
> gdalinfo -listmdd exif_and_gps_copy.tif
> 
> it seems that the EXIF metadata domain and tags are dropped.

Jukka,

Yes, this is read-only support for EXIF in the GTiff driver. Write-support in 
the JPEG driver was added in 2.3.0

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list