Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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 May 19th, 2006, 02:08 PM
Friend of Wrox
 
Join Date: May 2005
Location: , , .
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
Default how can I get width/height of a picture?

how can I get width/height of a picture through asp code?

 
Old May 26th, 2006, 06:10 PM
Authorized User
 
Join Date: Jun 2003
Location: Richmond, VA, USA.
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to erobb Send a message via Yahoo to erobb
Default

As far as I know you cant access the hXw of an image. It may be possible to do in JavaScript then pass a variable back to your ASP in the form of a cookie.

Earl
www.jhdesigninc.com

 
Old May 29th, 2006, 07:29 AM
Friend of Wrox
 
Join Date: Nov 2005
Location: Rotterdam, , Netherlands.
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I tried i though javascript this isn't the best way. Your image has to be loaded in your browser first and then get the height/width.

This is a bit tricky.
Better use a asp script

this one works it just needs a little tweaking.
http://www.4guysfromrolla.com/webtec...imgsz.asp.html

if you can't get this to work there are tons of scripts to find using google.

good luck

__________________________________________________ ________
This is my junk I'm gona eat it




Similar Threads
Thread Thread Starter Forum Replies Last Post
Get image height and width Dj Kat Javascript How-To 10 June 4th, 2009 01:49 PM
Chapter 2: width/height mcleod BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 5 May 24th, 2007 09:55 PM
get the height and width of an image with js crmpicco Javascript How-To 1 August 30th, 2006 11:26 PM
Height and Width? venkatesh_anmca Beginning VB 6 0 January 31st, 2005 05:13 AM
datalist and images(get width and height) collie VB.NET 2002/2003 Basics 1 August 4th, 2004 08:24 AM





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