[Tutor] Obtaining image date of creation

Kent Johnson kent37 at tds.net
Wed Nov 14 14:05:48 CET 2007


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.

Kent


More information about the Tutor mailing list