User Tools

Site Tools


typo3_cropping_tool

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
typo3_cropping_tool [2018/10/18 11:03] – created admintypo3_cropping_tool [2018/10/18 13:24] admin
Line 2: Line 2:
  
  
 +<code php> 
 +$GLOBALS['TCA']['pages']['types']['1']['columnsOverrides']['media']['config']['overrideChildTca']['columns']['crop']['config']['cropVariants'] = [ 
 +    'desktop' => [ 
 +        'title' => 'Desktop', 
 +        'focusArea' => [ 
 +            'x' => 1 / 3, 
 +            'y' => 1 / 3, 
 +            'width' => 1 / 3, 
 +            'height' => 1 / 3, 
 +        ], 
 +        'coverAreas' => [ 
 +            [ 
 +                'x' => 0, 
 +                'y' => 0.7, 
 +                'width' => 0.4, 
 +                'height' => 0.3, 
 +            ] 
 +        ], 
 +        'allowedAspectRatios' => [ 
 +            '21 : 1' => [ 
 +                'title' => '2,1 : 1', 
 +                'value' => 16/9, 
 +            ] 
 +        ] 
 +    ], 
 +    'mobile' => [ 
 +        'title' => 'mobile', 
 +        'coverAreas' => [ 
 +            [ 
 +                'x' => 0.6, 
 +                'y' => 0, 
 +                'width' => 0.4, 
 +                'height' => 0.3, 
 +            ] 
 +        ], 
 +        'allowedAspectRatios' => [ 
 +            '21 : 1' => [ 
 +                'title' => '2,1 : 1', 
 +                'value' => 16/9, 
 +            ] 
 +        ] 
 +    ], 
 +]; 
 +</code>
typo3_cropping_tool.txt · Last modified: 2018/10/18 15:15 by admin