In Python, how can I find out where in an image file the EXIF tag is located? I’m assuming it’s in the beginning of the file, but I have some proprietary image formats and want to make sure this is always the case. Thanks.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That depends not only on EXIF iself, but also in the file type.
I assume that you’re interested in JPEG files, so looking at the wikipedia page I see the following paragraph:
Hence, at least for JPEG files, you might find some images in which the Exif header doesn’t appear at the beggining of the file.