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

Feature: XMP tags function integrated at src/PIL/image.py #5142

Closed
wants to merge 19 commits into from

Conversation

UrielMaD
Copy link
Contributor

Fixes #5076

I propose to return an object with tags names and its values because it would get easier for the user to find what he's looking for, instead of giving the tag number as the getexif() function.

The tags returned are the ones that came in the XML tree contained in the image, so there's no need for having a tags table.

Changes proposed in this pull request:

  • Feature for retrieving XMP tags from image contained in an object.

This is how it the feature looks

`from PIL import Image

im = Image.open("url.jpg")

print(im.getxmp())`

and the resultant object:
Captura de Pantalla 2020-12-27 a la(s) 18 13 32

UrielMaD added a commit to UrielMaD/Pillow that referenced this pull request Dec 28, 2020
@UrielMaD UrielMaD closed this Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: implement im.getxmp() to return all embedded XMP meta data as XML
1 participant