Skip to content
Snippets Groups Projects
Commit 78c28885 authored by Andreas Fernandez's avatar Andreas Fernandez
Browse files

[BUGFIX] `ceil()` dimensions in CropperEvent

The dimensions available in `CropperEvent` are fractions in some cases,
that probably happens when an image gets upscaled. This causes issues
as those dimensions are apparently adjusted downward in the cropper
library, resulting in dimension reduced by 1px. To solve this issue,
`Math.ceil()` is applied to round up incoming dimensions.

Resolves: #96722
Releases: main, 11.5
Change-Id: I537bccd32a634805a37957bea59ec51e5e856272
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78717


Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 29171183
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment