On jeu, 2007-11-15 at 04:17 +0100, pyprog wrote:
>
> >>> import Image
> >>> ouv=Image.open('path_to_your_picture_with_exif_data__jpeg')
> >>> exifdata=imgExif._getexif()
A little error :
>>> import Image
>>> ouv=Image.open('path_to_your_picture_with_exif_data__jpeg')
>>> exifdata=ouv._getexif(
On 11/14/07, Roy Chen ([EMAIL PROTECTED]) wrote:
>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
Hello,
I'm new here .
To read EXIF with Python Imaging Library :
>>> import Image
>>> ouv=Image.open('path_to_your_picture_with_exif_data__jpeg')
>>> exifdata=imgExif._getexif()
>>> # Here a personnal exemple
>>> for keyExif, valueExif in zip(exifdata.keys(), exifdata.values()):
... print ke
> And while I haven't tried it, this page (http://effbot.org/zone/pil-
> changes-114.htm) appears to indicate exif format is somewhat
> supported in PIL; perhaps pyexif does a better job though?
PIL does a pretty job, though it's a pain.
from PIL import Image
from PIL.ExifTags import TAGS
def get
Thus spake Roy Chen:
> 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 s
> I'm assuming you don't want the last changed date you see on the file
> on your PC, but the creation date that the camera stored when the
> picture was taken.
>
> Now I don't know much about that, but I thought it was interesting, so
> I did some Googling :-)
>
> I don't know whether it's always
Hi,
I'm assuming you don't want the last changed date you see on the file
on your PC, but the creation date that the camera stored when the
picture was taken.
Now I don't know much about that, but I thought it was interesting, so
I did some Googling :-)
I don't know whether it's always stored, b
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 informatio
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
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?
Thanks,
Ro
10 matches
Mail list logo