[FEATURE] Add new imageManipulation supporting multiple crop variants 15/51515/24
authorHelmut Hummel <typo3@helhum.io>
Mon, 16 Jan 2017 19:11:23 +0000 (20:11 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Tue, 7 Feb 2017 20:26:22 +0000 (21:26 +0100)
commit063938393d793d7e4b0261da8fe709073a815ae9
treefedfa89919c8b22c5fe3c7871a76c8088ad5e177
parent6b5e34df362b0173497b0e168b58d7703c066370
[FEATURE] Add new imageManipulation supporting multiple crop variants

This feature extends the image cropping tool in the backend
so that editors can now not only select one crop area,
but multiple ones per image.

Within the crop are now also a focus are can be selected
and to preview areas that will be covered once the image
is rendered in the frontend one or more cover areas can be configured
to be shown inside the crop area.

This change also adds a format.json view helper and a view helper
to generate backend URIs that are used in the now fully Fluid rendered
imageManipulation element.

This is the TYPO3 integration part. TypeScript and CSS
will be done in a second commit.

Resolves: #75880
Releases: master
Change-Id: I646f0f0a149d05d1f3d8283bcc92ab09aede768e
Reviewed-on: https://review.typo3.org/51515
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
22 files changed:
typo3/sysext/backend/Classes/Form/Element/ImageManipulationElement.php
typo3/sysext/backend/Classes/Form/Wizard/ImageManipulationWizard.php
typo3/sysext/backend/Resources/Private/Templates/ImageManipulation/ImageCropping.html [new file with mode: 0644]
typo3/sysext/backend/Resources/Private/Templates/Wizards/ImageManipulationWizard.html [deleted file]
typo3/sysext/core/Classes/Imaging/ImageManipulation/Area.php [new file with mode: 0644]
typo3/sysext/core/Classes/Imaging/ImageManipulation/CropVariant.php [new file with mode: 0644]
typo3/sysext/core/Classes/Imaging/ImageManipulation/CropVariantCollection.php [new file with mode: 0644]
typo3/sysext/core/Classes/Imaging/ImageManipulation/InvalidConfigurationException.php [new file with mode: 0644]
typo3/sysext/core/Classes/Imaging/ImageManipulation/Ratio.php [new file with mode: 0644]
typo3/sysext/core/Classes/Migrations/TcaMigration.php
typo3/sysext/core/Documentation/Changelog/master/Feature-75880-ImplementMultipleCroppingVariantsInImageManipulationTool.rst [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Imaging/ImageManipulation/CropVariantCollectionTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Imaging/ImageManipulation/CropVariantTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Migrations/TcaMigrationTest.php
typo3/sysext/extbase/Classes/Service/ImageService.php
typo3/sysext/fluid/Classes/ViewHelpers/Format/JsonViewHelper.php [new file with mode: 0644]
typo3/sysext/fluid/Classes/ViewHelpers/ImageViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Uri/ImageViewHelper.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/ImageViewHelperTest.php
typo3/sysext/install/Classes/Updates/DatabaseRowsUpdateWizard.php
typo3/sysext/install/Classes/Updates/RowUpdater/ImageCropUpdater.php [new file with mode: 0644]
typo3/sysext/lang/Resources/Private/Language/locallang_wizards.xlf