[gdal-dev] How to generate COG without loosing Exif, XMP etc metadata

Luigi Pirelli luipir at gmail.com
Thu Nov 14 03:39:50 PST 2024


Hi,

I'm struggling to generate a COG maintaining the original (or at least a
selected subset of) Exif and XMP tags (I ses that Iptc tags are not
propagated at all, but I'm not interested in them).
I used gda_translate via CLI or python and the best option seems -strict
that, theoretically should maintain all original tags.

But some standard tags are propagated and others not!
e.g.
Exif.Image.Software yes
Exif.Photo.CameraOwnerName no
Exif.Image.Artist yes
Exif.Image.Copyright yes
Exif.Image.DateTimeOriginal no
Exif.Photo.DateTimeOriginal no
Exif.Image.Model no
Exif.Image.CameraSerialNumber no
etc

It is a bug? a feature? if a bug in any case is there a way to override?
The reason to find a solution is that adding tags over a COG with
"standard" tools like exiftool, exiv2 etc destroy COG structure. So I need
to add or modify tags before converting to COG.

any suggestion?

Luigi Pirelli
mails: luipir at gmail.com
           luigi.pirelli at geobeyond.it

**************************************************************************************************
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Book: Mastering QGIS3 - 3rd Edition
<https://www.packtpub.com/eu/application-development/mastering-geospatial-development-qgis-3x-third-edition>
**************************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20241114/21cd327c/attachment.htm>


More information about the gdal-dev mailing list