-
-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
createFrameAtIndex has a bug #3351
Comments
Maybe #3262 already solve this. |
only fix precision loss problem, but calculate maxPixelSize has a problem, I think should use this code |
for example my picture origin size 360 * 136 , request size 200 * 80, the result should get 200 * 75, bug use you code get 80 * 30 |
I think you're right. The documented design of that
will only assume to use another edge's length as input thumbnail pixel width. Which will make the final thumbnail smaller than you expected. |
Fixed in 5.12.6 |
There is a precision loss problem in this line ” CGFloat pixelRatio = pixelWidth / pixelHeight ; “
then "
should after Calculate the width and height in the same proportion, and then calculate maxsize
The text was updated successfully, but these errors were encountered: