Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x
This commit is contained in:
commit
01e75cfa7c
|
@ -120,7 +120,7 @@ SDWebImageManager.sharedManager.cacheKeyFilter = ^(NSURL * _Nullable url) {
|
||||||
* @note The `image` arg is nonnull, but when you also provide a image transformer and the image is transformed, the `data` arg may be nil, take attention to this case.
|
* @note The `image` arg is nonnull, but when you also provide a image transformer and the image is transformed, the `data` arg may be nil, take attention to this case.
|
||||||
* @note This method is called from a global queue in order to not to block the main thread.
|
* @note This method is called from a global queue in order to not to block the main thread.
|
||||||
* @code
|
* @code
|
||||||
SDWebImageManager.sharedManager.cacheKeyFilter = ^NSData * _Nullable(UIImage * _Nonnull image, NSData * _Nullable data, NSURL * _Nullable imageURL) {
|
SDWebImageManager.sharedManager.cacheSerializer = ^NSData * _Nullable(UIImage * _Nonnull image, NSData * _Nullable data, NSURL * _Nullable imageURL) {
|
||||||
SDImageFormat format = [NSData sd_imageFormatForImageData:data];
|
SDImageFormat format = [NSData sd_imageFormatForImageData:data];
|
||||||
switch (format) {
|
switch (format) {
|
||||||
case SDImageFormatWebP:
|
case SDImageFormatWebP:
|
||||||
|
|
Loading…
Reference in New Issue