From d4f2a83210c1db06610b1b56892e4315e5aad816 Mon Sep 17 00:00:00 2001 From: Josef Glatz <josefglatz@gmail.com> Date: Wed, 8 Feb 2017 09:19:00 +0100 Subject: [PATCH] [TASK] Add common image ratio 3:2 to cropVariants In addition to 16:9, 4:3, 1:1 and free another common image ratio "3:2" (DSLR default format) is introduced. Resolves: #79677 Releases: master Change-Id: Iac4aff754fe07216a6b956a47ac535eadacab553 Reviewed-on: https://review.typo3.org/51571 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by: Alexander Grein <alexander.grein@gmail.com> Reviewed-by: Georg Ringer <georg.ringer@gmail.com> Tested-by: Georg Ringer <georg.ringer@gmail.com> Reviewed-by: Harry Glatz <glatz@analog.de> Tested-by: Harry Glatz <glatz@analog.de> Reviewed-by: Andreas Fernandez <typo3@scripting-base.de> Tested-by: Andreas Fernandez <typo3@scripting-base.de> --- .../backend/Classes/Form/Element/ImageManipulationElement.php | 4 ++++ .../lang/Resources/Private/Language/locallang_wizards.xlf | 3 +++ 2 files changed, 7 insertions(+) diff --git a/typo3/sysext/backend/Classes/Form/Element/ImageManipulationElement.php b/typo3/sysext/backend/Classes/Form/Element/ImageManipulationElement.php index 7be89176863a..903affac09ad 100644 --- a/typo3/sysext/backend/Classes/Form/Element/ImageManipulationElement.php +++ b/typo3/sysext/backend/Classes/Form/Element/ImageManipulationElement.php @@ -50,6 +50,10 @@ class ImageManipulationElement extends AbstractFormElement 'title' => 'LLL:EXT:lang/Resources/Private/Language/locallang_wizards.xlf:imwizard.ratio.16_9', 'value' => 16 / 9 ], + '3:2' => [ + 'title' => 'LLL:EXT:lang/Resources/Private/Language/locallang_wizards.xlf:imwizard.ratio.3_2', + 'value' => 3 / 2 + ], '4:3' => [ 'title' => 'LLL:EXT:lang/Resources/Private/Language/locallang_wizards.xlf:imwizard.ratio.4_3', 'value' => 4 / 3 diff --git a/typo3/sysext/lang/Resources/Private/Language/locallang_wizards.xlf b/typo3/sysext/lang/Resources/Private/Language/locallang_wizards.xlf index b153e0c7a052..6858a82789f5 100644 --- a/typo3/sysext/lang/Resources/Private/Language/locallang_wizards.xlf +++ b/typo3/sysext/lang/Resources/Private/Language/locallang_wizards.xlf @@ -297,6 +297,9 @@ <trans-unit id="imwizard.ratio.16_9"> <source>16:9</source> </trans-unit> + <trans-unit id="imwizard.ratio.3_2"> + <source>3:2</source> + </trans-unit> <trans-unit id="imwizard.ratio.4_3"> <source>4:3</source> </trans-unit> -- GitLab