Solved

Using ASPImage to get image dimensions

Posted on 2003-12-10
6
328 Views
Last Modified: 2008-02-01
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
Comment
Question by:ftbadolato
  • 3
6 Comments
 
LVL 33

Expert Comment

by:hongjun
ID: 9913241
To get dimension, you can do this simply using javascript.
    alert(document.images["image_name"].width);

hongjun
0
 

Author Comment

by:ftbadolato
ID: 9913247
Nevermind...figured it out.
0
 
LVL 33

Accepted Solution

by:
hongjun earned 200 total points
ID: 9913276
check out documentation
http://www.serverobjects.com/comp/Aspimage.htm

hongjun
0
 
LVL 33

Expert Comment

by:hongjun
ID: 9913327
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now