[FEATURE] Add TCA type image_manipulation 22/37622/22
authorFrans Saris <franssaris@gmail.com>
Sat, 7 Mar 2015 19:05:44 +0000 (20:05 +0100)
committerFrans Saris <franssaris@gmail.com>
Wed, 15 Apr 2015 09:38:23 +0000 (11:38 +0200)
commite7ec4abaea793808a2248595b2d6f11c1f2bb585
tree60ec83a8d64edfe8ed6ab1604f9e40e8dd151f98
parent80e4e4a8a84aee1ac85c94b64acc97cac0b27c45
[FEATURE] Add TCA type image_manipulation

TCA type image_manipulation brings a image manipulation wizard
to the core.

This first version brings image cropping with the possibility to
set a certain aspect ratio for the cropped area. The
sys_file_reference.crop property is extended and can now also hold
a json string to describe the image manipulation.

The LocalCropScaleMaskHelper that is used by the core
to create adjusted images is also adjusted to handle the new format.

Overriding TCA by TSConfig will be done in a followup.

Resolves: #65585
Releases: master
Change-Id: I58dee33e0f884ba2907259e8b03254c43f4c9186
Reviewed-on: http://review.typo3.org/37622
Reviewed-by: Benjamin Kott <info@bk2k.info>
Tested-by: Benjamin Kott <info@bk2k.info>
Reviewed-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Tested-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
25 files changed:
Build/Gruntfile.js
Build/bower.json
typo3/sysext/backend/Classes/Form/Element/ImageManipulationElement.php [new file with mode: 0644]
typo3/sysext/backend/Classes/Form/FormEngine.php
typo3/sysext/backend/Classes/Form/Wizard/ImageManipulationWizard.php [new file with mode: 0644]
typo3/sysext/backend/Resources/Private/Templates/Wizards/ImageManipulationWizard.html [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/JavaScript/ImageManipulation.js [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/JavaScript/Modal.js
typo3/sysext/core/Classes/DataHandling/DataHandler.php
typo3/sysext/core/Classes/Page/PageRenderer.php
typo3/sysext/core/Classes/Resource/Processing/LocalCropScaleMaskHelper.php
typo3/sysext/core/Configuration/DefaultConfiguration.php
typo3/sysext/core/Configuration/TCA/sys_file_reference.php
typo3/sysext/core/Documentation/Changelog/master/Feature-65585-AddTCATypeImage_manipulation.rst [new file with mode: 0644]
typo3/sysext/core/Resources/Public/JavaScript/Contrib/cropper.min.js [new file with mode: 0644]
typo3/sysext/core/Resources/Public/JavaScript/Contrib/imagesloaded.pkgd.min.js [new file with mode: 0644]
typo3/sysext/core/ext_tables.sql
typo3/sysext/lang/locallang_tca.xlf
typo3/sysext/lang/locallang_wizards.xlf
typo3/sysext/t3skin/Resources/Private/Styles/TYPO3/_element_cropper.less [new file with mode: 0644]
typo3/sysext/t3skin/Resources/Private/Styles/TYPO3/_element_modal.less
typo3/sysext/t3skin/Resources/Private/Styles/TYPO3/_element_table.less
typo3/sysext/t3skin/Resources/Private/Styles/t3skin.less
typo3/sysext/t3skin/Resources/Public/Css/visual/t3skin.css
typo3/sysext/t3skin/Resources/Public/Images/cropper-background.png [new file with mode: 0644]