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! E _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor