Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 10th, 2003, 01:44 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts
Default Image Size

Is there a way when you load in a picture that you can know how big the picture is? For example if I had this:

<IMG SRC='picname.jpg' BORDER=1>
and when you right click the image in windows explorer and click properties and see that the image is actually 200 pixels wide by 300 pixels tall that I could read in the values of 200 and 300 while it is loading to maybe resize it in demand?

Basically I could have a graphic load in that is 300 wide by 200 tall or one that is 200 wide and 300 tall. In the box it shows in, I want to be able to tell this so on one there can be white space on the side and the other the white space would be on the top and bottom.

Old July 10th, 2003, 03:06 PM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi there,

This can't be done from plain ASP. However, there are (commercial) third party components that support this.

Search Google for asp image size component and you'll find quite a lot of components, including AspJpeg 1.2.

And hey, if you add the word free to that search term, you may end up here:


It's called Donationware, so if you like it, you may consider a donation (I am in no way affiliated with these guys BTW).



Imar Spaanjaars
Everyone is unique, except for me.
Old July 18th, 2003, 01:05 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts

Just though everyone would like to see this:

Determining Image Properties through ASP http://www.4guysfromrolla.com/webtec...-1.shtml<br />


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get image size without loading? tal Javascript How-To 3 June 30th, 2007 07:05 AM
set up image size goldenstate BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 4 February 15th, 2007 07:37 PM
Image size? Olaf_l ASP.NET 1.0 and 1.1 Basics 1 May 9th, 2005 05:56 AM
Image size kilika Classic ASP Professional 3 July 16th, 2003 09:26 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.