Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Write XMP data in image EXIF programmatically

I am trying to write custom EXIF data in my images from my Android app, but i see that there are tags non existing from the ExifInterface that appear on some images such as Yaw, Pitch Roll and an XMP toolkit.

I could not find any Android / Flutter package to write these tags and my client ask me to write the XMP data somewhere and print in inside the EXIF of the image.

I have asked about it in this repo but got no answer yet.

I would like to know exactly what is XMP and how to write values into a "XMP" file programmatically (Java / dart). Is it a server side thing or can it be done client side ?

Thanks a lot in advance

like image 209
Tom3652 Avatar asked Oct 15 '25 21:10

Tom3652


1 Answers

Please click this link to know more about XMP: https://en.wikipedia.org/wiki/Extensible_Metadata_Platform

This as well: https://neededapps.com/tutorials/what-are-image-metadata-exif-iptc-xmp/

In a nutshell, XMP stores information about the changes made to your image in post-processing.

Now, as for writing XMP data, here is the library you'll need: https://github.com/dragon66/pixymeta-android

And here is a sample GitHub question that shows how to edit XMP data: https://github.com/drewnoakes/metadata-extractor/issues/277

I'm not too fluent in Dart so I only provided Java code. Sorry for that.

Hope this helps!

like image 55
Marc Albert Espinas Avatar answered Oct 17 '25 10:10

Marc Albert Espinas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!