-
Notifications
You must be signed in to change notification settings - Fork 86
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
iOS 11兼容性问题 #86
Comments
Have a try with SDWebImageWebPCoder 0.14.0, I'm sure this is a old version issue. |
The bug introduced in 0.13.0, and we can still reproduce it in 0.14.0 |
? I think this is similar to SDWebImage/SDWebImage#3334 Do you means "Only contains issue on iOS 11-, no issue on iOS 12+~iOS 17" ? |
Seems Apple old version does not supports the new version's CGImage bitmap combination...Suck |
Please provide the runtime return value of Using lldb to print the combination (not the raw Int value) of I check whether libwebp can nativally support this format If not, we can add a backup logic, which use |
|
The Which SDWebImage does not supported yet. See feature requests SDWebImage/SDWebImage#3553 |
The better quick workaround is to limit the Or, I update the SDWebImageWebPCoder logic here to ignore HDR image. Because even the decoder product the 16 bit CGImage, on SDWebImage there are logic which strip the HRD away and consume only 8 bit CGImage, which still waste the work decoder done. |
I guess this is Apple's internal changes behavior. The old version |
Decide to quick hack to treat this 16 bits as 8 Bits instead. :( And I totally aggree SDWebImage itself should provide some HDR control, because actually WebP (legacy) does not supports HDR at all, and no need to produce 16 bit CGImage. It should always produce 8 bit CGImage |
Great, after you have a fix, I'm happy to test again |
pod 'SDWebImageWebPCoder', :git => 'github.com/SDWebImage/SDWebImageWebPCoder.git', :commit => 'eeebf2137e96db6211b909891c67112697b9421c' the imageRef is nil after this |
Can I merge it and release a new fix version ? 0.14.1 ? |
yes, please |
0.14.1 available |
iOS 11.3
Xcode 15
libwebp 1.3.2
在这里会报错,导致iOS 11设备无法正常加载webp图片。
8196947#diff-e9c046b25a4d1b5fd2e490c2ebc802f1a63ef0459e0ad74dd3647f72d9c68323R638
Unsupported libwebp preferred CGBitmapInfo: 4357
The text was updated successfully, but these errors were encountered: