-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how can i use this with png files? #1
Comments
There's no container format read/write support in go-xmp. You may have to write your own or use an existing parser to read/write native PNG or EXIF metadata. go-xmp helps you process the XMP data once you have it extracted. If a binary file contains an XMP packet you can easily find and extract it using To read EXIF data into go-xmp you may use exiftool (it can output JSON) or goexif and insert all EXIF/TIFF key/value pairs into a xmp.Exif model in a loop:
Note that You can add other value types supported by XMP too, but you would have to set the fields in Arguably the custom data types in XMP are a major inconvenience and Go doesn't help much in mapping data types from external libs here (same with Adobe's XMP C++ SDK). |
are there any example code that actually embeds XMP to jpeg/png? |
No. |
how can i use this with png files, creating and reading?
The text was updated successfully, but these errors were encountered: