You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OP asked how to write a JPEG comment into the file, i.e. not an EXIF comment, but as a COM segment. The closest issue I could find, #4450, was about reading JPEG comments.
While looking for a solution I cloned the repo (hash 5bdf63e) to see what was going on, but couldn't see anything relevant.
Would be happy to turn this into a pull-request if you think this is a reasonable idea. I think I'd fix by modifying _save() to pull in the comment (from the applist) by appending to extra in a similar way as icc_profile:
Following up on an answer I gave to the following stackoverflow question: https://stackoverflow.com/a/74658310/1358308
OP asked how to write a JPEG comment into the file, i.e. not an EXIF comment, but as a COM segment. The closest issue I could find, #4450, was about reading JPEG comments.
While looking for a solution I cloned the repo (hash 5bdf63e) to see what was going on, but couldn't see anything relevant.
Would be happy to turn this into a pull-request if you think this is a reasonable idea. I think I'd fix by modifying
_save()
to pull in the comment (from theapplist
) by appending toextra
in a similar way asicc_profile
:Pillow/src/PIL/JpegImagePlugin.py
Lines 714 to 736 in 9486786
Comments appreciated!
The text was updated successfully, but these errors were encountered: