[gdal-dev] gdal_translate drops XMP exif tags

Javier Jimenez Shaw j1 at jimenezshaw.com
Mon Aug 8 12:03:39 PDT 2022


Which version of GDAL are you using?
in https://gdal.org/programs/gdal_translate.html there is an option,
"-noxmp", since GDAL 3.2. Without that option it should keep them. If I
remember correctly, the XMP tags are copied as proper XMP, not as
GDALMetadata, with TIFF files.

An example with "gdalinfo -mdd all" for input and output may help.
.___ ._ ..._ .. . ._.  .___ .. __ . _. . __..  ... .... ._ .__
Entre dos pensamientos racionales
hay infinitos pensamientos irracionales.



On Mon, 8 Aug 2022 at 20:32, Tom O'Reilly <oreilly at mbari.org> wrote:

> gdal_translate output .tif file does not contain XMP tags that were
> present in the input .jpg file.
> The output file contains many of the input EXIF tags, aggregated as the
> GDALMetadata tag, but not the XMP tags.
> Why does gdal_translate remove XMP tags - is there an option to preserve
> them?
>
> Thanks
> Tom
> --------------------------------------------------
> Thomas C. O'Reilly
> Monterey Bay Aquarium Research Institute
> 7700 Sandholdt Road
> Moss Landing, California 95039-9644
> 831-775-1766 (voice)
> 831-775-1620 (FAX)
> oreilly at mbari.org (email)
> http://www.mbari.org (World-wide Web)
>
> "The machine does not isolate us from the great mysteries
>  of nature, but plunges us more deeply into them."
>
>    - ANTOINE DE SAINT-EXUPERY
>      "Wind, Sand, and Stars" (1939)
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220808/b01af038/attachment.htm>


More information about the gdal-dev mailing list