You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pexif...@googlegroups.com
Firstly thanks for making a exif library that works across different platforms and python versions. So far I've been through pyexiv2, exif.py and more to try and find something that can work on different systems.
I'm having some trouble getting the DateTimeOriginal from jpeg images.
Using the following I can get the date modified info:
jpeg = pexif.JpegFile.fromFile(photoFile)
exif = jpeg.get_exif()
primary = exif.get_primary()
print exif.primary.DateTime
But I can't figure out how to get the 'Date of digital data generation' that shows up using jpeg.dump(), I've tried a lots possibilities like exif.primary.DateTimeOriginal and tens more, but having no luck. I'm sure I'm missing something very simple but can't work it out so any help would be really appreciated.
D
Ben Leslie
unread,
Jun 29, 2013, 10:33:42 PM6/29/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Dave Sinclair, pexif...@googlegroups.com
Hi Dave,
I'm sure that given this email is almost a year old you've either
given up or worked this out for yourself, but for posterity, I think
that the attribute you are after is:
primary.ExtendedEXIF.DateTimeOriginal
I've added an example `scripts/dump_timestamp.py` that shows how to use this.