(keitai-l) Playing with EXIF

From: Stuart Woodward <stuart_at_gol.com>
Date: 07/15/03
Message-Id: <20030715111315.C676.STUART@gol.com>
I have been playing with EXIF for a while using Python. You can download
EXIF.py from:

http://home.cfl.rr.com/genecash/digital_camera.html

and getting the information out is trivial like this:

------------------------
import EXIF
file=3Dopen("gps.jpg", 'rb')
data =3D EXIF.process_file(file, 0)
print data["GPS GPSLatitude"]
------------------------
which when run prints

[35, 26, 629/50]

=2E.but it seems to have some problems with *some* files that my phone
creates:

i.e. this one is OK
http://www.stuartwoodward.com/images/au/030706_2308~00.jpg

i.e. this one is BAD and crass the script
http://www.stuartwoodward.com/images/au/030712_1456~00.jpg

I have contacted the author and am waiting for a response. but if anyone
has any ideas I would love to know why.

Stuart

----
P.S. Tokyo Bloggers Meetup is July 16th at the Pink Cow from 7:00PM=20
Received on Tue Jul 15 05:23:32 2003