[BUGFIX] Calculate correct cropping for large images 17/38717/4
authorFrans Saris <franssaris@gmail.com>
Wed, 15 Apr 2015 18:36:54 +0000 (20:36 +0200)
committerAndreas Fernandez <andreas.fernandez@aspedia.de>
Thu, 16 Apr 2015 14:31:01 +0000 (16:31 +0200)
commit47199b6eb94a18e41215e6422ae25164e0db0347
treef71125581b5e8023b07abc0d7fb83fe8c4ef8eb1
parentae98261c9e1cbd809553266122cfda9463f9c3e3
[BUGFIX] Calculate correct cropping for large images

When the visible image in the cropping wizard is a scaled
version of the original image we need to take the scaled ratio into
account when setting the crop info.

Scaling of the original images occurs when it is bigger then
1000px x 700px.

This patch makes sure the crop info is correctly calculated.

Resolves: #66440
Releases: master
Change-Id: I7852b19a47f462120c6ea4b72ec388254a210d3e
Reviewed-on: http://review.typo3.org/38717
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Tested-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
typo3/sysext/backend/Resources/Private/Templates/Wizards/ImageManipulationWizard.html
typo3/sysext/backend/Resources/Public/JavaScript/ImageManipulation.js