Update README.md
This commit is contained in:
parent
8df7931f95
commit
864a71e8f3
|
@ -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)};
|
||||||
|
|
Loading…
Reference in New Issue