I save UserComment data with piexif using the UserComment helper and dump it as exif bytes and write to jpg using pillow.
When I load the jpg with pillow, what is the best way to extract the UserComment using piexif without opening the file again (because its already opened with pillow)?
I save UserComment data with piexif using the UserComment helper and dump it as exif bytes and write to jpg using pillow.
When I load the jpg with pillow, what is the best way to extract the UserComment using piexif without opening the file again (because its already opened with pillow)?
For now I came up with the following:
is that how it is intended to work?