Home     Products      Support      Corporate     Sign In 
Support Knowledge Base, Article 271
Product
FileUp
Version
2.x, 3.x
Title
How can I get the dimensions of an uploaded image?
Problem
Does FileUp have methods for retrieving the height and width of an uploaded image?
Solution
The FileUp object model does not provide this functionality directly. However, you can accomplish the task easily using our FileManager product, which is installed together with FileUp. You will use the ".GetFile" method of FileManager to retrieve the uploaded image on the server, and then use the .ImageHeight and the .ImageWidth properties of the File Object to read the height and width of the image. The attached sample, "ImageProp.asp", demonstrates how to read the dimensions of an uploaded image. Copy the attached "Sample.jpg" into your "C:\Temp" folder and then install and run the sample. It should display a table which will highlight the image height and width and number of colors along with the image itself.
Attachments
Attachments/KB271_files1.zip
Created : 12/1/2002 12:00:00 AM (last modified : 9/11/2002 5:24:48 PM)
Rate this article!
Comments