Img-Resize 2014-04-01

Img-Resize is an ExpressionEngine plugin I built that lets you resize images on the fly. It handles jpg, png and gif files and will let you resize by width and/or height.

Requirements

  • ExpressionEngine 2.x
  • PHP 5+
  • GD2 or Imagick

Example

{exp:img_resize src="/assets/img/imagename.jpg" width="100" height="100" alt="Some alt text"}
// Outputs
<img src="http://domain.com/images/resized/assets/img/imagename_100x100.jpg" width="100" height="100" alt="Some alt text">

{exp:img_resize src="/assets/img/imagename.jpg" width="100" height="100" just_url="yes"}
// Outputs
http://domain.com/images/resized/assets/img/imagename_100x100.jpg

Check out the GitHub Project for more information.


Comments

comments powered by Disqus