I'd like to know if anyone knows of a simple way to determine the height and width of a .jpg file in perl. The upshot of this is that I could then build a window size based on the dimensions of the photo, and not have to manually open up each photo and copy it's dimensions to my HTML code.