• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 347
  • Last Modified:

Using ASPImage to get image dimensions

Hello,

ASPImage is available on my server.  If possible, I'd like to use it to get the dimensions (w x h) of an image that already exists on the server.  Can you please provide the code.  If this is not possible, can you suggest another way to get the dimensions of an image that exists on the server.

Thanks!
0
ftbadolato
Asked:
ftbadolato
  • 3
1 Solution
 
hongjunCommented:
To get dimension, you can do this simply using javascript.
    alert(document.images["image_name"].width);

hongjun
0
 
ftbadolatoAuthor Commented:
Nevermind...figured it out.
0
 
hongjunCommented:
check out documentation
http://www.serverobjects.com/comp/Aspimage.htm

hongjun
0
 
hongjunCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now