Here is a script that is published on the 4guysfromrolla site by Mike Shaffer: His article can be found at www.4guysfromrolla.com/webtech/050300-1.shtml

The Script checks for graphic files and then reports back the height, width and size and color settings.
We have modified it just slightly so that if you need these properties and you don't know what the full path to the files are, you can use the server.mappath function to get at them.

The modifications we made are marked by this symbol    '----- 

View the script

I was especially keen on this script because I want to allow uploading of image files on one of my sites and since I wouldn't know in advance what the height & width would be it was important to find out at least the height so that I could reduce the image size but keep the aspect ratio.


 

Return to the main ASP script page on Chinook-Computers.com