Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Retrieve Image Dimensions??? 2

Status
Not open for further replies.

IEAN

Programmer
Sep 13, 2003
122
US
Hi all,

I have a gallery type page that when you mouse over the bottom thumbnail image, the larger version image will show up above the thumbnails. I have set the larger version of the images to be 200px in width, what I intended to do is to have any images whose width is greater then 200px to be resize to be 200px. While those whose width is less then 200px to stay intact. So I am wondering, how can I retrieve the width or a particular image so that I can put the width dimension into an if then statement? Please advise, many thanks!
 
Thanks Dan! Nope I didn't search the FAQs, thanks for providing such a helpful FAQ [thumbsup2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top