imgSizer.js
In short, it cycles through your document, swaps out the images for a transparent GIF, and applies the AlphaImageLoader
property to each one. Then, whenever the window’s resized, the script automatically recalculates the proper, proportional height and width of the image, and resizes the spacer graphic accordingly.