Photo Resize is a jQuery plugin that resizes photo according to browser window.
Originally made by gutierrezalex for a question on stackoverflow
Additional code by jjYBdx4IL
Rewritten by Anima-t3d
$('selector').photoResize();
$('selector').photoResize({
bottomSpacing:"Bottom Spacing adjustment"
});
$('img.test').photoResize({
bottomSpacing:10,
rightSpacing:20,
upscaleImageWidth:true,
upscaleImageHeight:true
});
bottomSpacing
this is the spacing below the image (default: 10)
rightSpacing
this is the spacing on the rightside of the image (default: 20)
upscaleImageWidth
when false, it keeps max height of the image, no upscaling (default: true)
upscaleImageHeight
when false, it keeps max width of the image, no upscaling (default: true)
Note: Scaling is uniform. When one of the 2 upscale options are false, it'll use original size as max sizing.