in reply to Script to insert image information into MySQL
Are you asking how to find image size? Image::Size or Image::Info both look promising.