Auto Image resizing
Posted on 2003-02-20
I have an older web template that generate HTML pages that contain images. The old template was designed for 800x600 resolution. In this day and age that is too small.
I modeified the template to generate two seperate galleries based on screen resolution. It is currently a manual process where the use must select either 800x600 or 1024x768 resolution as they enter the site.
This solves the problem, but the draw back is obviously I must maintain two galleries of images, one for 800x600 display and the other for the 1024x768. Not only is this a pain in the butt, but it also eats Hard drive space.
What I would like to know, is if there is anyway to dynamically resize the image based on the user's screen resolution. What I have in mind is to only provide the highest image resolution hoping their exists a technique to resize the imagine down on lower resolution screens.
Another issue is that the images are all different sizes with different aspects. If they were all the same aspect, I could used the Width and Height contraints to regulate picture size.
So basically, is there a miacle that exists, to determine the browser window size and then maximize the image on the available space while retaining aspect ratios?
Geeez, don't want much do I? <Sheepish grin> Definitely an expert question.