Actions
Bug #93679
closedCropping to 0 (zero) pixels height/width breaks page/content editing
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
Start date:
2021-03-08
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:
Description
It is possible to store an image cropping configuration of 0 (zero) pixels in width or height. For this an editor simply needs to reduce the cropping frame to 0 in width or height. After saving an error shows up:
Width and height of the image must be greater than zero
Unless the crop
field of the affected sys_file_reference
record is cleared/fixed manually in the database, viewing the page in the Page module or editing the affected record in the List module is impossible due to this error.
A few options to fix this:
- Require a minimum of 1x1 Pixel for cropping
- Display error and disable Accept in the Image manipulation wizard
- Handle a width/height of 0 Pixel more gratuitously in
ImageDimension
.
Actions