Вопрос

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