如何扩展 typo3 图像编辑器以添加另一种格式 16:11?
How to extend typo3 image editor to add another format 16:11?
如何在 typo3 FAL 图像的 "Image manipulation" 编辑器中添加更多选项
详情请见下图
创建一个扩展并安装它。创建文件 Configuration/TCA/Overrides/sys_file_reference.php
。您可以在此处向裁剪工具添加比率:
$GLOBALS['TCA']['sys_file_reference']['columns']['crop']['config'] = array(
'type' => 'imageManipulation',
'allowedExtensions' => 'jpg',
'ratios' => array(
'1.7777777777777777' => '16:9',
'1.3333333333333333' => '4:3',
'0.71428571428571' => '5:7',
'1' => '1:1',
'NaN' => 'Free',
),
);
如何在 typo3 FAL 图像的 "Image manipulation" 编辑器中添加更多选项 详情请见下图
创建一个扩展并安装它。创建文件 Configuration/TCA/Overrides/sys_file_reference.php
。您可以在此处向裁剪工具添加比率:
$GLOBALS['TCA']['sys_file_reference']['columns']['crop']['config'] = array(
'type' => 'imageManipulation',
'allowedExtensions' => 'jpg',
'ratios' => array(
'1.7777777777777777' => '16:9',
'1.3333333333333333' => '4:3',
'0.71428571428571' => '5:7',
'1' => '1:1',
'NaN' => 'Free',
),
);