Skip to content
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

IPTC tags in WebP images #16735

Closed
allmyfavoriteusernamesaretaken opened this issue May 5, 2024 · 5 comments
Closed

IPTC tags in WebP images #16735

allmyfavoriteusernamesaretaken opened this issue May 5, 2024 · 5 comments
Labels
depends: external lib scope: DAM managing files, collections, archiving, metadata, etc.

Comments

@allmyfavoriteusernamesaretaken

Describe the bug

I have configured some EXIF and IPTC tags to be set when exporting photos from darktable (lighttable → export → preferences → per metadata settings). When exporting the photos in JPEG format, all metadata tags are included in the resulting image, but when exporting in WebP format, only the EXIF tags are included.

Is there any particular reason for this behavior? Or is this a bug?

Steps to reproduce

  1. Open the export preferences (lighttable → export → preferences → per metadata settings).
  2. Configure some EXIF and some IPTC metadata tags (e.g. Exif.Image.Artist → $(CREATOR) and Iptc.Application2.Byline → $(CREATOR)). Make sure the tags is defined for the photo to export in darktable.
  3. Export the same photo twice, once as JPEG and a second time as WebP.
  4. Read the metadata of both images, e.g. using Gimp (Image → Metadata → View Metadata).
  5. Both images will contain the EXIF metadata, but only the JPEG the IPTC metadata.

Expected behavior

darktable should export IPTC metadata also in WebP images.

Logfile | Screenshot | Screencast

edit metadata exportation

Commit

No response

Where did you obtain darktable from?

flatpak

darktable version

4.6.1

What OS are you using?

Linux

What is the version of your OS?

Ubuntu 22.04

Describe your system?

No response

Are you using OpenCL GPU in darktable?

None

If yes, what is the GPU card and driver?

No response

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

No response

@kmilos
Copy link
Contributor

kmilos commented May 5, 2024

WebP format does not support IPTC metadata, AFAIK:

https://developers.google.com/speed/webp/docs/riff_container

@ralfbrown ralfbrown added scope: DAM managing files, collections, archiving, metadata, etc. depends: external lib labels May 5, 2024
@allmyfavoriteusernamesaretaken
Copy link
Author

Thanks a lot!

@kmilos
Copy link
Contributor

kmilos commented May 6, 2024

See also https://groups.google.com/a/webmproject.org/g/webp-discuss/c/u-zht-Suh-g/m/EXxcPYLlAQAJ

@kmilos
Copy link
Contributor

kmilos commented May 7, 2024

@allmyfavoriteusernamesaretaken I guess you can (and should) use IPTC properties in XMP though (in combination w/ Dublin Core ones):

https://exiv2.org/tags-xmp-iptc.html
https://exiv2.org/tags-xmp-iptcExt.html

https://www.iptc.org/std/photometadata/specification/IPTC-PhotoMetadata#iptc-core-schema-1-4-specifications
https://www.iptc.org/std/photometadata/specification/IPTC-PhotoMetadata#iptc-extension-schema-1-8-specifications

Note that this seems to be the recommended way now, and modern formats like AVIF and JPEG XL also support only Exif and XMP.

@allmyfavoriteusernamesaretaken
Copy link
Author

Thanks, I'll try this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
depends: external lib scope: DAM managing files, collections, archiving, metadata, etc.
Projects
None yet
Development

No branches or pull requests

3 participants