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
Instead of max(sourceWidth / targetWidth, sourceHeight / targetHeight), it should be max(ceil(sourceWidth / (float) targetWidth), ceil(sourceHeight / (float) targetHeight)).
The description is also inaccurate. The largest edge of the image will be between 1x and 1/2x the requested size, the smaller edge may be considerably smaller than 1/2x the requested size.
The text was updated successfully, but these errors were encountered:
Instead of
max(sourceWidth / targetWidth, sourceHeight / targetHeight)
, it should bemax(ceil(sourceWidth / (float) targetWidth), ceil(sourceHeight / (float) targetHeight))
.The description is also inaccurate. The largest edge of the image will be between 1x and 1/2x the requested size, the smaller edge may be considerably smaller than 1/2x the requested size.
The text was updated successfully, but these errors were encountered: