Print Page | Close Window

Determining Image Size

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=1073
Printed Date: 29 March 2026 at 5:17am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Determining Image Size
Posted By: Gary
Subject: Determining Image Size
Date Posted: 17 March 2003 at 8:03am

Is it possible for asp (or Jscript) to determine the size (dimensions) of an image from the image file itself?

For example, I may have a folder full of images of varous sizes (dimensions) and want to determine the height and width of each image (automatically/programatically)




Replies:
Posted By: MorningZ
Date Posted: 17 March 2003 at 10:22am
http://www.4guysfromrolla.com/webtech/050300-1.shtml - http://www.4guysfromrolla.com/webtech/050300-1.shtml is one way


-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: Gary
Date Posted: 18 March 2003 at 4:13am

Thx Morningz, but that solution is based on asp.net and not 'classic' asp.

Basically what I have is a Javascript function that opens a new window which contains the desired image. The parameters for the function are image file, image height and image width - all of which I specify manually at present. What I would like to do is just specify the file and for asp to determine it's height and width. Does anyone know of a way to do this?



Posted By: MorningZ
Date Posted: 18 March 2003 at 6:32am
just gave ya what i could man.. just gave ya what i could

-------------
Contribute to the working anarchy we fondly call the Internet



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net