Project

General

Profile

Actions

Bug #93807

closed

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

Added by Stefan Froemken over 3 years ago. Updated 5 months ago.

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

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

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #99943: Limit image cropper minimal sizeClosed2023-02-13

Actions
Has duplicate TYPO3 Core - Bug #93679: Cropping to 0 (zero) pixels height/width breaks page/content editingClosed2021-03-08

Actions
Actions

Also available in: Atom PDF