[SDWebImageManager] Don't copy attributes from originalImage to transformedImage. This fixes https://github.com/SDWebImage/SDWebImage/issues/2975.
This commit is contained in:
parent
bddc130914
commit
ed8887db35
|
@ -453,8 +453,6 @@ static id<SDImageLoader> _defaultImageLoader;
|
|||
} else {
|
||||
cacheData = (imageWasTransformed ? nil : originalData);
|
||||
}
|
||||
// keep the original image format and extended data
|
||||
SDImageCopyAssociatedObject(originalImage, transformedImage);
|
||||
[self storeImage:transformedImage imageData:cacheData forKey:key cacheType:storeCacheType options:options context:context completion:^{
|
||||
[self callCompletionBlockForOperation:operation completion:completedBlock image:transformedImage data:originalData error:nil cacheType:SDImageCacheTypeNone finished:finished url:url];
|
||||
}];
|
||||
|
|
Loading…
Reference in New Issue