문제

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