jQuery plugin useful for resizing images to browser window size. It keeps the image maximized while resizing window.
<div id="container">
<div id="imageWrapper">
<img src="image.jpg" alt="" />
</div>
</div>
$('#container').maximize();
- both (default)
- horizontal
- vertical
- left (default)
- right
- crop (default)
- fill
- 0 (default) - max magnification factor
- 0 (default) - image width limit [px]
- 0 (default) - image height limit [px]