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
Supports built-in WebP/AWebP codec from ImageIO for iOS 14/tvOS 14/macOS 11/watchOS 7 #3048
Conversation
@@ -112,7 +90,7 @@ | |||
debugDocumentVersioning = "YES"> | |||
<RemoteRunnable | |||
runnableDebuggingMode = "2" | |||
BundleIdentifier = "com.apple.carousel" | |||
BundleIdentifier = "com.apple.Carousel" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This diff is caused by Xcode 12 update. And seems does not effect the user who use Xcode 11.
91d5fb1
to
7bfd67a
Compare
…eb Encoding currently
2b829f1
to
d09ff5a
Compare
Codecov Report
@@ Coverage Diff @@
## master #3048 +/- ##
==========================================
- Coverage 83.51% 83.24% -0.27%
==========================================
Files 69 70 +1
Lines 7589 7593 +4
==========================================
- Hits 6338 6321 -17
- Misses 1251 1272 +21
Continue to review full report at Codecov.
|
…method with Set to check, instead of creating different internal files
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: #3041
Pull Request Description
This close #3041
Changes
Similiar to HEIC, iOS 14's new WebP codec can be implementes with the subclass of
SDAnimatedImageIOCoder
.ThekUTTypeWebP
does not get defined by Apple's SDK (bugs?), but I found the raw string value for that isorg.webmproject.webp
, so we define one with macroThe UTI API is here: https://developer.apple.com/documentation/uniformtypeidentifiers/uttypewebp
However, we need to support Xcode 11 :) So we hardcode the raw value with macro.
For macOS, we can supports the NSImageView rendering with
SDAnimatedImageRep
as well.Also, this PR changes one possible previouslly wrong design, now, the
SDImageIOCoder
as a default backup, does not check any format and always pass it to system and try to decode, no need hack forHEIC
, orWebP
.Run result on iPhone Simulator with iOS 14: