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 -- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ================================================================== _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
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
participants (2)
-
Chris Beaven -
Troy Farrell