Question

I'm having a problem with image manipulation in classic ASP. I need o know the size of the image, so I can make a if statement.

How can I do this with classic asp? Do I need to use javascript/Jquery instead?

Thank you all in advance

Was it helpful?

Solution

Use GetDimensions. Example:

Set Image = Server.CreateObject("csImageFile.Manage")
Image.GetDimensions "C:\images\test.jpg"
Response.Write Image.ReadWidth & "<br/>"
Response.Write Image.ReadHeight & "<br/>" 
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top