JPEG comments are from the COM marker by radarhere · Pull Request #8788 · python-pillow/Pillow
Navigation Menu
{{ message }}
python-pillow / Pillow Public
- Notifications You must be signed in to change notification settings
- Fork 2.4k
Merged
hugovk merged 1 commit intopython-pillow:mainfrom
Mar 3, 2025Merged
JPEG comments are from the COM marker#8788
hugovk merged 1 commit intopython-pillow:mainfrom
JPEG comments are from the COM marker#8788
hugovk merged 1 commit intopython-pillow:mainfrom
Conversation
Copy link Copy Markdown
Member
radarhere
commented
Mar 2, 2025
radarhere
commented
Requested in #8787 (comment) - a note in the documentation that JpegImagePlugin's info["comment"] is from the COM marker
Pillow/src/PIL/JpegImagePlugin.py
Lines 173 to 179 in bcdb688
| def COM(self: JpegImageFile, marker: int) -> None: | |
| # | |
| # Comment marker. Store these in the APP dictionary. | |
| n = i16(self.fp.read(2)) - 2 | |
| s = ImageFile._safe_read(self.fp, n) | |
| self.info["comment"] = s |
and that this is distinct from the UserComment EXIF tag.
Line 157 in bcdb688
| UserComment = 0x9286 |
radarhere
added
the
Documentation
label
radarhere
force-pushed
the
jpeg_comment
branch
from
07f2b08 to
c60682a
Compare
radarhere
mentioned this pull request
radarhere
added
the
JPEG
label
radarhere
deleted the
jpeg_comment
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment