๐Ÿ”” Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

imgFitter is an ultra-light jQuery plugin used to dynamically resize and crop images to fit any web layout while maintaining aspect ratio & centering.

image-resize Image-Cropping

Documentation

jQuery imgFitter plugin

jQuery Plugin for resize and crop image without wrapper tags.

DEMO

In your HTML:

<img data-src="01.jpg" class="target-element" width="320" height="320"> <img data-src="02.jpg" class="target-element" width="320" height="320"> <img data-src="03.jpg" class="target-element" width="320" height="320">  ...  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script> <script src="path/to/jquery.imgFitter.js"></script> <script> $(function () { 	$( '.target-element' ).imgFitter(); }); </script>

That's it! You don't need to wrap images in div tag.

ChangeLog

  • Version 0.1 ( 3 Jul 2015 )
    • ่ชฐใ‹ใซใƒใ‚งใƒƒใ‚ฏใ—ใฆใ‚‚ใ‚‰ใ†ใŸใ‚ใซๅ…ฌ้–‹

Copyright and License

Copyright ยฉ 2015 Hideyuki.MOTOO. This plugin is licensed under the MIT license.


You May Also Like