Feature #25078

Cropping support for content element images

Added by Christian Eßl almost 9 years ago. Updated about 5 years ago.

Should have
Target version:
Start date:
Due date:
% Done:


PHP Version:
Sprint Focus:


Would'nt it be useful to make imagecropping work in content elements with images, like in typoscript with the "c"-Parameter?

For example if you want to display a list of various images with the same aspect ratio, the first you would do is to specify a width and height. - One of the two values with a "c"-Parameter to be added, to ensure, that the images are cropped to the same size.

Right now, this can only be applied with extra typoscript, as the inputs in the content elements do not accept additional parameters for width and height of the images.

(issue imported from #M17642)


#1 Updated by Sigfried Arnold almost 9 years ago

One option is to to simply change evaluation for imageheight and imagewidth to string (from currently integer) - disadvantage is, that you can enter '200x','foo' or any other string - not just an integer followed by an optional c - therefore a custom validation function must be used.

Another disadvantage is that the c-Suffix does very odd calculations.

if you want cropping with proper aspect ratio and selectable gravity for the cropping - there need to be extra settings

there is an extension in the repository for that - maybe you give that a try first:

#2 Updated by Mathias Schreiber about 5 years ago

  • Description updated (diff)
  • Status changed from New to Closed
  • Target version deleted (0)

We are currently tackling this issue in another bucket.

Also available in: Atom PDF