Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
#1951: Fix animated WebP decoding issue, including canvas size, the support for dispose method and the duration per frame #1952
New Pull Request Checklist
This merge request fixes / reffers to the following issues: ...
Pull Request Description
SDWebImage 4.0 add support for animated WebP images. And the UIImage+WebP category use
Fix animated WebP image decoder bug causing rendering canvas in current canvas size context but not image size context for multiple frame.
Fixed CGContextBitmapCreate with wrong bitmapInfo if has no alpha channel Rename sd_rawWepImageWithData to sd_rawWebpImageWithData
@@ Coverage Diff @@ ## master #1952 +/- ## ========================================== + Coverage 76.6% 77.42% +0.82% ========================================== Files 27 27 Lines 2513 2631 +118 ========================================== + Hits 1925 2037 +112 - Misses 588 594 +6
This fix logic about 1. 2. 3. is nearly the same as #1694.
The last one(5. support duration per frame), it use the simple gcd number of each frame duration and add current frame for multiple times because that UIKit suck at