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

Use IPTC/XMP tags to display and index generation #249

Open
NicoPL opened this issue May 27, 2017 · 8 comments
Open

Use IPTC/XMP tags to display and index generation #249

NicoPL opened this issue May 27, 2017 · 8 comments

Comments

@NicoPL
Copy link

NicoPL commented May 27, 2017

Hello,

I wonder if we could access the metadata : IPTC tags and XMP tags to use them.
IPTC (extended to XMP a while ago) are very useful for:

  • Author
  • Location
  • Copyright
  • Keywords
  • etc.

1st use:

  • Display some of the metadata with the picture
  • Example: Display the Copyright, the Title, the Author

2nd use:

  • Use them for filtering
  • Example: Display according to the Author, sorted by Location

3rd use:

  • when generating the gallery, be able to filter on some of the metadata.
  • Example: I host all of my pictures in folders in my server. But only want to display in the gallery the ones which have the keyword 'to_display' and the copyright 'Creative Commons'

The #198 is talking a bit about the Title stored in EXIF metadata. But EXIF is not made for that normally.

Cheers

@saimn
Copy link
Owner

saimn commented May 27, 2017

It would be great indeed, but I'm not sure there is a Python library to read these tags ?

@NicoPL
Copy link
Author

NicoPL commented May 27, 2017 via email

@saimn
Copy link
Owner

saimn commented May 28, 2017

Ok but sadly it's not so easy to find the good one: I knew pyexiv2, and the py3 version is still not pip- installable. And these two library are GPL licensed, which is not compatible with Sigal.
It would be great to have IPTC/XMP directly in Pillow, but I don't know if there are plans for this.

@NicoPL
Copy link
Author

NicoPL commented May 30, 2017 via email

@saimn
Copy link
Owner

saimn commented May 30, 2017

No problem, it always tricky to find good libraries (maintained, compatible license, etc.).

@reagle
Copy link

reagle commented Sep 1, 2017

This sounds related to my own request #62 .

@alcoralcor
Copy link

alcoralcor commented Jan 2, 2019

Would this feature be implemented one day ? I need a similar feature to generate gallery depending on image rating.

@saimn
Copy link
Owner

saimn commented Jan 2, 2019

@alcoralcor - There is now some parsing of IPTC metadata (title, description) which are used for the images display. For other uses (e.g. filtering), it depends if someone wants to implement these kind of feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants