Skip to content
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

Fix the maxPixelSize logic issue will cause a upscale in SDImageIOAnimatedCoder #3039

Merged
merged 1 commit into from
Jun 23, 2020

Conversation

henry2423
Copy link
Contributor

New Pull Request Checklist

  • I have read and understood the CONTRIBUTING guide

  • I have read the Documentation

  • I have searched for a similar pull request in the project and found none

  • I have updated this branch with the latest master to avoid conflicts (via merge from master or rebase)

  • I have added the required tests to prove the fix/feature I am adding

  • I have updated the documentation (if necessary)

  • I have run the tests and they pass

  • I have run the lint and it passes (pod lib lint)

This merge request fixes / refers to the following issues: ...

Pull Request Description

This change is based on #3015, which fix the issue of maxPixelSizelogic check in SDImageIOCoder.m. However, for other coder like HEICCoder that used SDImageIOAnimatedCoder as base class, the issue is not resolved. So I fix it and hope to ship the fix on 5.8.2

@henry2423 henry2423 marked this pull request as ready for review June 22, 2020 08:22
@dreampiggy
Copy link
Contributor

😢 Seems I forgot that the logic in Animnated Coders..

@dreampiggy dreampiggy added fix ImageIO Anything related to Apple ImageIO codec labels Jun 23, 2020
@dreampiggy dreampiggy added this to the 5.8.2 milestone Jun 23, 2020
@dreampiggy
Copy link
Contributor

Can we add a Unit Test case to avoid this silly problem ?

A check to pass a large size (10000x10000) to image which contains only 1000x1000 pixels and have a assert check.

@dreampiggy
Copy link
Contributor

I'll added one after this PR been merged.

@dreampiggy
Copy link
Contributor

dreampiggy commented Aug 13, 2020

This PR seems not update the logic below your diff code 😂. My review fault.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix ImageIO Anything related to Apple ImageIO codec
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants