Imager X for Craft

An image manipulation plugin for the Craft CMS that supports imgix URLs
PHP 12 8 days ago spacecatninja/craft-imager-x Maintainer: André Elvan

Features

  • The most efficient template syntax for doing a bunch of image transforms in one go:

    {{ craft.imager.transformImage(myImage, [{ width: mySmallestSize }, { width: myBiggestSize }], { ratio: 16/9, fillTransforms: true }) | srcset }}
  • If you know the aspect ratio you want, you don't have to calculate the extra height/width:

    { width: 800, ratio: 16/9 }
  • New letterbox resize mode:

    { width: 600, height: 600, mode: 'letterbox', letterbox: { color: '#000', opacity: 0 } }
  • New croponly mode. To crop, not resize:

    { width: 600, height: 600, mode: 'croponly', position: '20% 65%' }
  • New cropZoom parameter for when you want to get a little closer:

    { width: 600, height: 600, mode: 'crop', position: '20% 65%', cropZoom: 1.5 }
  • Basic image effects, including grayscale, negative, blur, sharpen, gamma and colorize:

    { effects: { sharpen: true, gamma: 1.4, colorize: '#ff9933' } }
  • Advanced image effects, including color blend, tint, clut, levels, sepia, contrast, modulate, normalize, contrast stretch, unsharp mask, posterize and many more (Imagick - imagedriver only):

    { effects: { modulate: [100, 40, 100], colorBlend: ['rgb(255, 153, 51)', 0.5] } }
  • Your own choice of which resize filter to use. Speed vs. quality is up to you (Imagick imagedriver only).

  • Support for watermarks:

    { watermark: { image: logo, width: 80, height: 80, position: { right: 30, bottom: 30 }, opacity: 0.8, blendMode: 'multiply' } }
  • Get color information, dominant color and palette, from your images.

  • A bunch of color utilities for getting brightness, hue, lightness, percieved brightness, relative luminance, saturation, brightness difference, color difference and - (puh!) contrast ratio.

Get Started

Documentation and additional examples for the Imager X Craft Plugin library can be found on GitHub at https://github.com/spacecatninja/craft-imager-x.

Imager 2.0

An older version of the plugin can be found on GitHub at https://github.com/aelvan/Imager-Craft.

It is free to use but is deprecated and no longer being maintained.


More Plugins