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
There's an error thrown by Gd Editor when using smart crop on portrait images when the provided width of crop is equal or larger to that of the original image.
When I crop with $image->getWidth() - 1, it works, but then the image is 1px less than what I need
Also, it only does this with smart crop, other crop methods work.
Is it enough info?
Cheers!
The text was updated successfully, but these errors were encountered:
Though this package probably is not maintained anymore, to whom come here for the answer.
Always use integer values for image dimension to avoid this problem. When assign expression values to image (explicitly or over methods like crop), use intval() over expressions.
Hi,
There's an error thrown by Gd Editor when using smart crop on portrait images when the provided width of crop is equal or larger to that of the original image.
ex:
When I crop with
$image->getWidth() - 1
, it works, but then the image is 1px less than what I needAlso, it only does this with smart crop, other crop methods work.
Is it enough info?
Cheers!
The text was updated successfully, but these errors were encountered: