Project

General

Profile

Actions

Feature #25078

closed

Cropping support for content element images

Added by Christian Eßl about 13 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-02-18
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

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)

Actions #1

Updated by Sigfried Arnold about 13 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:
http://typo3.org/extensions/repository/view/image_crop/current/

Actions #2

Updated by Mathias Schreiber over 9 years ago

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

We are currently tackling this issue in another bucket.

Actions

Also available in: Atom PDF