Hi, The only way I know of to do this is to use LWP or Sockets and get the image. Then use Image::Size to get the dimensions. This will majorly slow things down though. I have made a similar script and gave up on doing what you are trying to do. You may want to just make a special code the user enters for the size of the image and limit that. Example (image="http://somedomain/someimage.gif" width=20 height=40) Then if they do not specify a height and width just set a default one. Also limit the size they can specify. This will not limit the actual bytes of the image but it is better than nothing.