Hi Javier, As noted in my previous response, I was wrong about gdal_translate - it actually does transfer the XMP tags from the input to the output, as XMP tags. It is a subsequent call to gdalwarp that drops the XMP tags. I am running gdal 3.5.0
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) orei...@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) From: "Javier Jimenez Shaw" <j...@jimenezshaw.com> To: "Tom O'Reilly" <orei...@mbari.org> Cc: "gdal-dev" <gdal-dev@lists.osgeo.org> Sent: Monday, August 8, 2022 12:03:39 PM Subject: Re: [gdal-dev] gdal_translate drops XMP exif tags Which version of GDAL are you using? in [ https://gdal.org/programs/gdal_translate.html | 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 < [ mailto:orei...@mbari.org | orei...@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) [ mailto:orei...@mbari.org | orei...@mbari.org ] (email) [ http://www.mbari.org/ | 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 [ mailto:gdal-dev@lists.osgeo.org | gdal-dev@lists.osgeo.org ] [ https://lists.osgeo.org/mailman/listinfo/gdal-dev | https://lists.osgeo.org/mailman/listinfo/gdal-dev ]
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev