-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
PIL cannot read JPEG comment #4450
Labels
Comments
It's not exposed under |
Yes, for the moment, you can access it through from PIL import Image
im = Image.open("comment.jpg")
print(im.app["COM"]) # b'JPEG-COMMENT-TEST\x00' |
I've created PR #4455 to resolve this. |
Thank you both. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What did you do?
I want PIL to read the JPEG comment (marker: 0xFF 0xFE).
I took an image with an attached JPEG comment - verified with exiftools & IrfanView to exist.
What did you expect to happen?
Show the JPEG comment in the dict.
What actually happened?
What are your OS, Python and Pillow versions?
I cannot attach an image via github ("Something went really wrong, ..."), so here is the file (5.61 KiB) (I downloaded it and verified it's byte-identical to the uploaded one):![jpeg-comment-test.jpg](https://camo.githubusercontent.com/dd41de243eac63648b518929082190318a864055c904f1f89af68ecbdfedff70/68747470733a2f2f692e706f7374696d672e63632f6e727a31785631722f6a7065672d636f6d6d656e742d746573742e6a7067)
The text was updated successfully, but these errors were encountered: