ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pythoncard
pythoncard
[Pythoncard-users] JPEG EXIF header parsing
by Kevin Altis other posts by this author
Jul 15 2002 3:54PM messages near this date
[Pythoncard-users] flatfileDatabase updates and release 0.6.8 | RE: [Pythoncard-users] FW: Just Wanted To Say Thanks!!!
This message is for Phil Edwards or anyone else that wants to investigate
EXIF headers for JPEGS.

I was planning to add EXIF support to pictureViewer and slideshow, so they
would at least be able to do auto-rotation of images, but of course I got
distracted by fpop and other projects :). If we get something working, the
basic EXIF header parsing could be rolled into the framework. So, if you
want to look into EXIF, check out Gene Cash's pages and code or some of the
other places below:

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

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

http://pyexif.sourceforge.net/

http://ray.cg.tuwien.ac.at/rft/Photography/TipsAndTricks/Exif/

I haven't spent any time trying the code from the pages above, it might just
work as is, in which case I just need to wrap the rotation methods from
wxImage into a BitmapCanvas or Bitmap call to simplify usage.

An example EXIF header is below from an image shot with my Sony F505V, which
I captured using EXIF Image Viewer

http://home.pacbell.net/michal_k/exif_v.html

The Orientation is 8, instead of 1, meaning that the camera was rotated when
the image was taken.

ka
---

File: C:\digital_images\2002-05-23\DSC00703.JPG

Tag	Name	Value
010e	ImageDescription
010f	Make	SONY
0110	Model	CYBERSHOT
0112	Orientation	8
011a	XResolution	72.0
011b	YResolution	72.0
0128	ResolutionUnit	2
0132	DateTime	2002:05:23 10:30:16
0213	YCbCrPositioning	2
8769	ExifOffset	224
829a	ExposureTime	1/530
829d	FNumber	4.0
8822	ExposureProgram	2
8827	ISOSpeedRatings	100
9000	ExifVersion	0x30 0x32 0x31 0x30
9003	DateTimeOriginal	2002:05:23 10:30:16
9004	DateTimeDigitized	2002:05:23 10:30:16
9101	ComponentsConfiguration	0x1 0x2 0x3 0x0
9102	CompressedBitsPerPixel	2.0
9204	ExposureBiasValue	0.0
9205	MaxApertureValue	3.0
9207	MeteringMode	2
9208	LightSource	0
9209	Flash	0
920a	FocalLength	7.1
a000	FlashPixVersion	0x30 0x31 0x30 0x30
a001	ColorSpace	1
a002	ExifImageWidth	1856
a003	ExifImageLength	1392
a005	InteroperabilityOffset	582
0001	InteroperabilityIndex	R98
0002	InteroperabilityVersion	0x30 0x31 0x30 0x30
a300	FileSource	0x3
a301	SceneType	0x1
0103	Compression	6
010f	Make	SONY
0110	Model	CYBERSHOT
0112	Orientation	8
011a	XResolution	72.0
011b	YResolution	72.0
0128	ResolutionUnit	2
0132	DateTime	2002:05:23 10:30:16
0201	JPEGInterchangeFormat	797
0202	JPEGInterchangeFormatLength	4298



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Pythoncard-users mailing list
Pythoncard-users@[...].net
https://lists.sourceforge.net/lists/listinfo/pythoncard-users

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved