Update the comment to show why we need filter GIF
This commit is contained in:
parent
05d3c7fdcb
commit
f0a4014aa9
|
@ -419,7 +419,8 @@ didReceiveResponse:(NSURLResponse *)response
|
|||
NSString *key = [[SDWebImageManager sharedManager] cacheKeyForURL:self.request.URL];
|
||||
image = [self scaledImageForKey:key image:image];
|
||||
|
||||
// Do not force decoding animated images
|
||||
// Do not force decoding animated images or GIF,
|
||||
// because there has imageCoder which can change `image` or `imageData` to static image, lose the animated feature totally.
|
||||
BOOL shouldDecode = !image.images && image.sd_imageFormat != SDImageFormatGIF;
|
||||
if (shouldDecode) {
|
||||
if (self.shouldDecompressImages) {
|
||||
|
|
Loading…
Reference in New Issue