>>> import Image>>> im = Image.open('myimage.jpg')>>> im.size(200, 100)PIL reads the header only in the Image.open() call above.
Sponsored Link
Mortgage rates near 39yr lows. $420,000 Mortgage for $1,399/mo - Calculate new house payment--
http://mail.python.org/mailman/listinfo/python-list
Torsten Bronger wrote:
> Hallöchen!
>
> I have to extract the dimensions of many bitmap files. An old Bash
> script did it with ImageMagick's "display -ping ...". "-ping" means
> that it extracts the image dimensions efficiently. I suspect it
> simply doesn't read the image itself.
>
> Now the
Hallöchen!
I have to extract the dimensions of many bitmap files. An old Bash
script did it with ImageMagick's "display -ping ...". "-ping" means
that it extracts the image dimensions efficiently. I suspect it
simply doesn't read the image itself.
Now the Bash script has been transformed into
Hallöchen!
I have to extract the dimensions of many bitmap files. An old Bash
script did it with ImageMagick's "display -ping ...". "-ping" means
that it extracts the image dimensions efficiently. I suspect it
simply doesn't read the image itself.
Now the Bash script has been transformed into