Length of either side cannot be 0 or negative, current size is 2x0
ausi opened this issue · 0 comments
ausi commented
See https://community.contao.org/de/showthread.php?81203
If a small image gets resized with a very wide aspect ratio the calculated height might end up being zero. This is invalid as there are no images with 0
height or width.
I think we should force a minimum width/height of 1
in
image/src/ResizeCalculator.php
Lines 225 to 238 in fcfda96