Project

General

Profile

Actions

Bug #93138

closed

LocalCropScaleMaskHelper causes TypeError with clickEnlarge

Added by Mario Matzulla almost 4 years ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Image Cropping
Target version:
-
Start date:
2020-12-21
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.3
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

TYPO3 Version 10.4.11 after migrating from 8.7.31
I'm getting:
Argument 1 passed to TYPO3\CMS\Core\Imaging\ImageManipulation\Area::__construct() must be of the type float, null given, called in typo3_src-10.4.11/typo3/sysext/core/Classes/Resource/Processing/LocalCropScaleMaskHelper.php on line 209

at TYPO3\CMS\Core\Imaging\ImageManipulation\Area->__construct(null, null, null, null)

$options['crop'] = new Area($cropData->x, $cropData->y, $cropData->width, $cropData->height);

changing to

$options['crop'] = new Area((float)$cropData->x, (float)$cropData->y, (float)$cropData->width, (float)$cropData->height);

solved this issue

Actions

Also available in: Atom PDF