Update README.md

This commit is contained in:
DreamPiggy 2020-12-14 15:11:35 +08:00
parent 8df7931f95
commit 864a71e8f3
1 changed files with 2 additions and 0 deletions

View File

@ -216,6 +216,8 @@ See more documentation in [SDWebImage Wiki - Coders](https://github.com/SDWebIma
The WebP codec [libwebp](https://developers.google.com/speed/webp/docs/api) we use, supports some advanced control options for encoding/decoding. You can pass them to libwebp by using the wrapper top level API: The WebP codec [libwebp](https://developers.google.com/speed/webp/docs/api) we use, supports some advanced control options for encoding/decoding. You can pass them to libwebp by using the wrapper top level API:
+ Objective-C
```objective-c ```objective-c
UIImage *image; UIImage *image;
SDImageCoderOptions *options = @{SDImageCoderEncodeWebPMethod: @(0), SDImageCoderEncodeWebPAlphaCompression: @(100)}; SDImageCoderOptions *options = @{SDImageCoderEncodeWebPMethod: @(0), SDImageCoderEncodeWebPAlphaCompression: @(100)};