Forum OpenACS Q&A: Response to Is there a tcl function to get image size?
3: Response to Is there a tcl function to get image size? (response to 1)
Posted by Michael A. Cleverly on 05/09/01 02:52 AM
Using the AOLserver API you can get the width & height for a .gif via ns_gifsize, and for a .jpg via ns_jpegsize.
If you want to work in pure Tcl then you might want to look at the Tcl'ers Wiki where you can find examples of how to read the dimensions of .gif, .jpeg, and .png files.