Solved

Using ASPImage to get image dimensions

Posted on 2003-12-10
6
334 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Select record with the most recent date 14 71
Writing lines of code from a form output in script within a results page 2 35
If condition on Html with Asp 11 42
Clear input text 15 27
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

749 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