Skip to main content
Tweeted twitter.com/#!/StackExpression/status/282384072184041473
edited tags
Link
Natetronn
  • 2.7k
  • 20
  • 24
edited tags
Link
UltraBob
  • 943
  • 6
  • 24
Source Link
4midori
  • 382
  • 4
  • 18

Image cropping/sizing with CE Image

I've got some images that are not square (portrait and landscape format), but I want them cropped square with CE Image.

I've tried various parameters from the documentation, but the results are stretched unnaturally. I'd prefer to have the image cropped to center and not scaled.

{exp:ce_img:single src="{image}" filter="grayscale" filename_suffix="-OFF" unique="none" class="fadein" max="192" crop="yes|center,center|0,0|no"}