-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add EXIF, IPTC, XMP metadata handling for JPEG, PNG, WEBP, GIF, HEIC, JXL, AVIF #93
Conversation
I investigated an Adobe stock image and the following tags seem to be relevant:
iStock (by Getty Images)
Fotolia
|
8178450
to
4a4e594
Compare
Reading from PNG, WEBP and JPEG and writing to JPEG already works now 🎉 (Independent of Imagick/GD) |
Reading and writing XMP, IPTC-IIM, EXIF from/to JPEG, PNG, WEBP works now 🚀 |
759247a
to
ddf474a
Compare
7c13398
to
e03e6de
Compare
69a34eb
to
fc71191
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks very nice and very powerful! ❤️
Nitpicks in the comments but the general concept is 👍
I played around a little and parsing metadata works fine (PNG, WEBP and JPEG for now).
But writing metadata will probably be more dificult, as there are no counterparts to
iptcparse()
andexif_read_data()
in PHP. So we will need to write the binary format ourselfs.So I think to make this possible we need to define a list of fields we want to support (see #80 (comment) ) because supporting all EXIF, IPTC and XMP tags would be way too much work.
For XMP we could maybe find useful information in the https://github.com/wikimedia/xmp-reader library.