2016-06-28 16 views

回答

2

Createn的延伸和安裝。創建文件​​3210。這是你可以添加比例到裁剪工具:

$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', 
    ), 
); 
+0

謝謝丹尼爾,它的作品就像一個魅力! –

相關問題