[TYPO3-german] Typo3 Core Anpassung getImageSourceCollection?

Oliver Baran obaran at gmail.com
Tue Oct 28 12:33:39 CET 2014


Hallo zusammen,

ich würde gerne folgende Anpassung für den Typo3 Core vorschlagen:

typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php

@@ -1392,6 +1392,12 @@
  } else {
  $pixelDensity = 1;
  }
+                $params = $this->stdWrapValue('params', $sourceConfiguration);
+                if ($params !== '' && $params{0} !== ' ') {
+                    $params = ' ' . $params;
+                    $sourceRenderConfiguration['file.']['params'] = $params;
+                    unset($params);
+                }
  $dimensionKeys = array('width', 'height', 'maxW', 'minW', 'maxH', 'minH');
  foreach ($dimensionKeys as $dimensionKey) {
  $dimension = $this->stdWrap($sourceConfiguration[$dimensionKey],
$sourceConfiguration[$dimensionKey . '.']);

Diese Änderung bewirkt, das man im Typoscript Template bei
"sourceCollection" dem jeweiligen Key angepasste Parameter zur
Bildgenerierung mitgeben kann. Bsp:
tt_content.image.20.1.sourceCollection >
tt_content.image.20.1{
  file{
    params = -quality 100
  }
  sourceCollection {
    medium {
      dataKey = medium
      params = -quality 1 -negate
    }
  }
}

Was meint ihr?
Oder gibt es einen besseren Weg dies zu erreichen?

Viele Grüße


More information about the TYPO3-german mailing list