[Zope] size of image in LocalFS

Troy Farrell troy@entheossoft.com
Tue, 22 Oct 2002 17:52:30 -0500


Or if you are lazy (like me), use an external method with several 
commandline options.  Look for a perl-base program called imgsize or the 
imagemagick utility called identify.  It's (probably) slower(depending 
on the size of the image), but it works.

Troy

Chris Beaven wrote:
> Yes, you could do it with PIL
> 
> 
> -----Original Message-----
> From: AM [mailto:list_subscriber@neurobs.com]
> Sent: Wednesday, 23 October 2002 5:58 a.m.
> To: Zope
> Subject: [Zope] size of image in LocalFS
> 
> 
> Hi,
> I have a set of images in a LocalFS. I provide links to those images on 
> another page and when a user clicks on those links a small window pops 
> up that displays the image.
>  Is it possible in anyway to figure out the size of the image in advance 
> so that I can size the pop up window to be the same??
> 
> TIA
> AM
>