Project

General

Profile

Actions

Bug #37957

closed

Width of images ignored if height set

Added by Stefan Neufeind over 12 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2012-06-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

Proposed solution:
  • 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?


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #19996: Implement MaxHClosedDmitry Dulepov2009-02-11

Actions
Actions #1

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.

Actions #2

Updated by Mathias Schreiber almost 10 years ago

  • Target version set to 7.2 (Frontend)
  • Is Regression set to No
Actions #3

Updated by Benni Mack over 9 years ago

  • Target version changed from 7.2 (Frontend) to 7.4 (Backend)
Actions #4

Updated by Susanne Moog over 9 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #5

Updated by Benni Mack about 9 years ago

  • Target version changed from 7.5 to 7 LTS
Actions #6

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

Actions

Also available in: Atom PDF