From ed8887db35e58cbfd14e7bf86bdda150db53a051 Mon Sep 17 00:00:00 2001 From: Brian Amerige Date: Tue, 7 Apr 2020 13:58:11 -0700 Subject: [PATCH] [SDWebImageManager] Don't copy attributes from originalImage to transformedImage. This fixes https://github.com/SDWebImage/SDWebImage/issues/2975. --- SDWebImage/Core/SDWebImageManager.m | 2 -- 1 file changed, 2 deletions(-) diff --git a/SDWebImage/Core/SDWebImageManager.m b/SDWebImage/Core/SDWebImageManager.m index 22c0e06c..2adf2b64 100644 --- a/SDWebImage/Core/SDWebImageManager.m +++ b/SDWebImage/Core/SDWebImageManager.m @@ -453,8 +453,6 @@ static id _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]; }];