Bug #93807

Edit of content elements with image (width=0) not possible

Added by Stefan Froemken about 2 months ago. Updated about 2 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
Start date:
2021-03-23
Due date:
% Done:

0%

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

MarkArea0x0InCropArea.png (565 KB) MarkArea0x0InCropArea.png Stefan Froemken, 2021-03-23 10:23
#1

Updated by Stefan Froemken about 2 months ago

Value from sys_file_reference:

{"default":{"cropArea":{"x":0.78,"y":0.575,"width":0,"height":0},"selectedRatio":"1:1","focusArea":null}}

I have changed that in DB to 64x64 and now I can open the content element.

Also available in: Atom PDF