fix: sd_colorAtPoint/sd_colorsWithRect should early return when pixel format is not supported by dreampiggy · Pull Request #3798 · SDWebImage/SDWebImage
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
In previous version, when using RGB16/RGBA10, these method may return a non-nil but not correct UIColor, which may cause more complicated issue and hard to detect.
Now, we just return nil and log the error, to let user know it's not supported