ExpressionEngine Add-ons

Ez Image Resize

version

2.0

works on

EE 2.x

$4.99

Image for Ez Image Resize Buy Now Support

Template Tag

{exp:ez_image_resize:run} is the only tag currently available.

Note: EZ Image Resize can only be used as a tag pair and all examples must have the closing tag {/exp:ez_image_resize:run} even if not shown.

Parameters

max_width

{exp:ez_image_resize:run max_width="550"}

Sets the max width the image can be. This will normally be the width of the parent div so no child images will break the layout. Any images smaller then this will not be resized unless a width and height are defined inside of the image tag itself.

quality

{exp:ez_image_resize:run quality="90"}

Sets the quality of a jpg/jpeg file. The quality can range from 0 (lowest) to 100 (highest) and should be a whole number. The default quality is 70.

Note: This parameter has no effect if the final image is a png or a gif, as they are always saved at their respective highest qualities.

( update default quality number: thanks John)

save_type

{exp:ez_image_resize:run save_type="png"} ( jpg / png / gif )

*png needed for any images with transparency

rounded_corners

{exp:ez_image_resize:run rounded_corners="all|10"}

This would round each corner 10 pixels.

bg_color

{exp:ez_image_resize:run bg_color="#000000"}

This will set the background color to black.

border

{exp:ez_image_resize:run border="3|ffffff"}

Adds a 2 pixel white border.

filter

{exp:ez_image_resize:run filter="grayscale"}

Any of the below filters are available for use within EZ Image Resize:

  • brighness
  • colorize
  • contrast
  • edgedetect
  • emboss
  • gaussian_blur
  • mean_removal
  • negate
  • opacity
  • pixelate
  • replace_colors
  • selective_blur
  • sepia
  • sharpen
  • smooth
  • sobel_edgify

Information on all filters can be found here: http://www.causingeffect.com/software/ee/ce_img/filters

remove

{exp:ez_image_resize:remove} {content} {/exp:ez_image_resize:remove}

Removes all image tags between the tag pair.

debug

{exp:ez_image_resize:run debug="yes"}

Will add debugging notes to the template debugging, if the option is turned on in the CP.