Extract JPEG Exif Data #1953
-
Hi, how can I save JPEG Images from PDF and keeping the EXIF data (author, copyright etc.)?
Saves the file correctly, but the EXIF data is missing. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
got it, its more a pillow thing get exif with
and then save like this
|
Beta Was this translation helpful? Give feedback.
-
Actually, if you do this, the data stored in the PDF should be saved to disk 1:1 - i.e. including any EXIF: img = doc.extract_image(xref)
out = open(f"{xref}.{img['ext']}", "wb")
out.write(img["image"])
out.close() |
Beta Was this translation helpful? Give feedback.
Actually, if you do this, the data stored in the PDF should be saved to disk 1:1 - i.e. including any EXIF: