Bug #37957
closedWidth of images ignored if height set
0%
Description
An image-contentelement has settings for imagewidth and imageheight. You can use them to specify the maximum width or the maximum height of an image. If however you intend to give the image a maximum bounding-size (for example if placed in a container of fixed size) this does not work. When imageheight is set, this value overrides whatever is set as imagewidth and thus the images can get even wider as specified.
Root-cause for this is that there is no maxH (maximum height). Instead in css_styled_content the setting equalH is used (since no maxH is available). When using multiple images in one element this is intended to make all images have an equal height (and by that also overriding the specified maxW).
Currently there is:
typo3/sysext/css_styled_content/static/setup.txt: equalH.field = imageheight
- Introduce another field "imageheightfixed" in the image-content-element (and maybe also "imagewidthfixed" for completeness?) to have a setting that can be used to behave as it does currently (using equalH).
- Implement a setting maxH
- In upgrade-wizard between two TYPO3-versions move all values from current field "imageheight" to the new "imageheightfixed"
- Fix css_styled_content to use all those three/four fields as intended.
This would be a "BC-break" but with a clear migration-path. Maybe we could do that on the step 4.7 to 6.0?
Updated by Viktor Livakivskyi over 12 years ago
I vote for this feature!
Also it would be nice to implement possibility to crop images in CE, since, as Stefan mentioned, sometimes they must have fixed dimensions, and scaling won't help here.
This may be done by allowing to enter, e.g. "250c" to "Height (px)" input or aditional option at "Effect" dropdown.
Regars.
Updated by Mathias Schreiber almost 10 years ago
- Target version set to 7.2 (Frontend)
- Is Regression set to No
Updated by Benni Mack over 9 years ago
- Target version changed from 7.2 (Frontend) to 7.4 (Backend)
Updated by Susanne Moog over 9 years ago
- Target version changed from 7.4 (Backend) to 7.5
Updated by Benni Mack about 9 years ago
- Target version changed from 7.5 to 7 LTS
Updated by Mathias Schreiber about 9 years ago
- Status changed from New to Closed
won't fix, since we move to Fluid Rendering of CEs