Advertisement
Guest User

php

a guest
Oct 17th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.58 KB | None | 0 0
  1. <?php
  2. $GLOBALS['TCA']['sys_file_reference']['columns']['crop']['config'] = [
  3.         'type' => 'imageManipulation',
  4.         'cropVariants' => [
  5.             'default' => [
  6.                 'title' => 'Default',
  7.                 'allowedAspectRatios' => [
  8.                     'NaN' => [
  9.                         'title' => 'Frei',
  10.                         'value' => 0.0
  11.                     ],
  12.                     '16:9' => [
  13.                         'title' => 'Querformat 16:9',
  14.                         'value' => 16 / 9
  15.                     ],
  16.                     '3:2' => [
  17.                         'title' => 'Querformat 3:2',
  18.                         'value' => 3 / 2
  19.                     ],
  20.                     '4:3' => [
  21.                         'title' => 'Querformat 4:3',
  22.                         'value' => 4 / 3
  23.                     ],
  24.                     '1:1' => [
  25.                         'title' => 'Quadrat 1:1',
  26.                         'value' => 1 / 1
  27.                     ],
  28.                    
  29.                     '2:3' => [
  30.                         'title' => 'Hochformat 2:3',
  31.                         'value' => 2 / 3
  32.                     ],
  33.                     '3:4' => [
  34.                         'title' => 'Hochformat 3:4',
  35.                         'value' => 3 / 4
  36.                     ],
  37.                     '9:16' => [
  38.                         'title' => 'Hochformat 9:16',
  39.                         'value' => 9 / 16
  40.                     ],
  41.                    
  42.                 ],
  43.                 'selectedRatio' => '3:2',
  44.             ],
  45.         ],
  46.     ];
  47. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement