From e3b15e3dbe89d99ef7c3775e46159d52e3289b46 Mon Sep 17 00:00:00 2001 From: Kyle Fleming Date: Wed, 1 May 2013 14:36:13 -0700 Subject: [PATCH] fix alpha pngs turning into white pngs when caching when you have a method that transforms the image but doesn't touch the pngs --- SDWebImage/SDWebImageManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/SDWebImageManager.m b/SDWebImage/SDWebImageManager.m index c5dafcdb..50d247bf 100644 --- a/SDWebImage/SDWebImageManager.m +++ b/SDWebImage/SDWebImageManager.m @@ -160,7 +160,7 @@ if (transformedImage && finished) { - NSData *dataToStore = isImageGIF ? data : nil; + NSData *dataToStore = [transformedImage isEqual:downloadedImage] ? data : nil; [self.imageCache storeImage:transformedImage imageData:dataToStore forKey:key toDisk:cacheOnDisk]; } });