#93807Edit of content elements with image (width=0) not possible
Description
Hello,
a customer made it to set image dimension in Crop-Editor to 0×0. I have tested it and yes, it’s a little bit tricky, but it’s really possible to mark an area of 0×0px (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