You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we've found an use case where the image resizer is not working as expected.
In our case, this happens when using the resizeToWidth and resizeToHeight methods but the issue can be present in more places.
Inside the method a ratio is calculated and from that, the desired height/width is also calculated. It may happen that the calculated dimension is <0px which causes an error.
Example:
Original size: 600x2 px
Desired width is 100px max, so I use the resizeToWidth method.
Hi,
we've found an use case where the image resizer is not working as expected.
In our case, this happens when using the
resizeToWidth
andresizeToHeight
methods but the issue can be present in more places.Inside the method a ratio is calculated and from that, the desired height/width is also calculated. It may happen that the calculated dimension is <0px which causes an error.
Example:
Original size: 600x2 px
Desired width is 100px max, so I use the
resizeToWidth
method.Then, when I try to get the image's content using the
getImageAsString
method, it fails with:I through about adding some minimum size in the
resize
method, but I'm not sure if it wouldn't break something else:The text was updated successfully, but these errors were encountered: