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

有帮助吗?

解决方案

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/>" 
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top