Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在经典 ASP 中遇到图像处理问题。我需要知道图像的大小,所以我可以做一个 if 语句。
我怎样才能用经典的 asp 做到这一点?我需要改用 javascript/Jquery 吗?
谢谢大家
使用 GetDimensions。例子:
Set Image = Server.CreateObject("csImageFile.Manage") Image.GetDimensions "C:\images\test.jpg" Response.Write Image.ReadWidth & "<br/>" Response.Write Image.ReadHeight & "<br/>"