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 <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) > 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) > > _______________________________________________ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > 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