[SDWebImageManager] Don't copy attributes from originalImage to transformedImage. This fixes https://github.com/SDWebImage/SDWebImage/issues/2975.

This commit is contained in:
Brian Amerige 2020-04-07 13:58:11 -07:00
parent bddc130914
commit ed8887db35
1 changed files with 0 additions and 2 deletions

View File

@ -453,8 +453,6 @@ static id<SDImageLoader> _defaultImageLoader;
} else { } else {
cacheData = (imageWasTransformed ? nil : originalData); 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 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]; [self callCompletionBlockForOperation:operation completion:completedBlock image:transformedImage data:originalData error:nil cacheType:SDImageCacheTypeNone finished:finished url:url];
}]; }];