[Tutor] Obtaining image date of creation

Eric Abrahamsen eric at abrahamsen.com
Wed Nov 14 15:03:00 CET 2007

On Nov 14, 2007, at 9:05 PM, Kent Johnson wrote:
> Roy Chen wrote:
>> Hello,
>> I would like to write a simple script that would rename a bunch of
>> photos according to their creation date, i.e. the date which the
>> photo was taken.
>> Is there a way to use Python to obtain that information from the
>> image file, or is that information not stored in the file?
> os.path.getctime() works on Windows, I'm not clear what it reports  
> on *nix.

Or you can use the Python Imaging Library (http://www.pythonware.com/ 
products/pil/) and get ALL the information!


More information about the Tutor mailing list