Image resizing with javascript

Soldato
Joined
28 Dec 2004
Posts
7,620
Location
Derry
Can anyone help me? I can't install anything on one of our customers servers as he uses shared windows hosting so I need to somehow resize some images on the fly using javascript, basically I'm trying to display any image greater than 640 pixels wide as 640 pixels wide, it's probably a simple matter of doing something with the image width/height but it's keeping the aspect ratio that's doing my head in. Any help is greatly appreciated.
 
Cuchulain said:
thanks but they're not much help, sorry. The second one loads 3 different image sizes up. I want to have one image size that'll automatically resize itself to 640px wide only if it's greater than 640px wide but keep the aspect ratio.
eeek sorry....
 
Back
Top Bottom