-
September 11th, 2006, 01:27 PM
#1
getting the height of an image
I'm displaying images using ajax (photo album) and I'm setting the width of the image when I draw it to the form, and leaving the height 'unmentioned'. Normally, this allows the browser to auto-size the height based on the dimensions of the image, based on the specified width. I'm finding the width goes to what I specify it as, but the height does not auto-adjust when I used javascript, and I end up displaying a vertically stretched image the looks terrible.
anyone know how to get the dimensions of the image so I can adjust the height programmatically? Anyone have any other working methods I haven't thought of?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|