Eigene Ratio für sys_file_reference.crop

  1. # ext_tables.php
  2.  
  3. $defaultConfig = [
  4. 'type' => 'imageManipulation',
  5. 'file_field' => 'uid_local',
  6. 'enableZoom' => true,
  7. 'allowedExtensions' => null,
  8. // default: $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
  9. 'ratios' => [
  10. '2.038' => '2038/1000',
  11. '1.519' => '1519/1000',
  12. '1' => 'LLL:EXT:lang/locallang_wizards.xlf:imwizard.ratio.1_1',
  13. 'NaN' => 'LLL:EXT:lang/locallang_wizards.xlf:imwizard.ratio.free',
  14. '1.7777777777777777' => 'LLL:EXT:lang/locallang_wizards.xlf:imwizard.ratio.16_9',
  15. '1.3333333333333333' => 'LLL:EXT:lang/locallang_wizards.xlf:imwizard.ratio.4_3',
  16. ]
  17. ];
  18. $GLOBALS['TCA']['sys_file_reference']['columns']['crop']['config'] = $defaultConfig;