Share

Python Exif Parser

Tracker: Feature Requests

5 enhance parse to handle JFIF marker - ID: 472914
Last Update: Attachment added ( dhalbert )

Several programs I used (e.g. IrfanView, Ulead Photo
Explorer) do lossless JPEG transforms, but when they
write the .jpg file back out, they add a JFIF marker
in the front of the file before the EXIF marker.

exif.parse() expects the first marker in a JPEG file
to be an EXIF marker, and therefore does not recognize
these JFIF files as having EXIF.

I have a small patch to exif.parse() to handle these
JFIF-marked files. The diff is attached.

I don't know whether you think this is the best way to
fix this problem, but it worked for me.

Dan Halbert


Dan Halbert ( dhalbert ) - 2001-10-19 20:55

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
exif-jfif-fix.py enhance parse() to handle initial JFIF marker Download

Change ( 1 )

Field Old Value Date By
File Added 12218: exif-jfif-fix.py 2001-10-19 20:55 dhalbert