You'll need to create multiple copies of the photo in various sizes and upload each to the site. Then comes the programming.Why not treat all that as an "image stream"?
This image demonstrates the concept using PHP and JavaScript, but the ideal would be native server & client support.
Just click...
This technique is extensively used on the FMSphoto gallery.
More to come...



