Actions
Bug #93807
closedEdit of content elements with image (width=0) not possible
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
Start date:
2021-03-23
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
10
PHP Version:
7.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Hello,
a customer made it to set image dimension in Crop-Editor to 0x0. I have tested it and yes, it's a little bit tricky, but it's really possible to mark an area of 0x0px (see picture).
After saving the content element it is not possible to open Site-Module (for this PID) or open the content element over List-Module. This results in Exception:
Oops, an error occurred! Width and height of the original image must be greater than zero More information regarding this error might be available online.
You will find the exception in sysext/core/Classes/Imaging/ImageDimension.php line 76.
PS: It's really hard to debug this Exception. Maybe you see a possibility to add the File UID and the missing width/height of cropping into Exception message. I have searched and queried various DB tables instead...
PPS: missing space in line above ;-)
Stefan
Files
Actions