Open AlynxZhou opened 2 months ago
Fixed coding style, added missing round()
.
There are mistakes when shrinking user's max size to image ratio, let me fix it.
There are mistakes when shrinking user's max size to image ratio, let me fix it.
Fixed, the final output size will always be smaller than user's max size and has the same ratio with the original image.
I tried and it works :) 👍🏻
Issues
4 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
This is based on those 2 rules:
So the actual logic on determine final size is simple:
Fixes https://github.com/aurelienpierreeng/ansel/issues/362.