Authored by Olivier Poitrey

Merge pull request #383 from garthex/white_png_issue

fix alpha pngs turning into white pngs
@@ -166,7 +166,7 @@ @@ -166,7 +166,7 @@
166 166
167 if (transformedImage && finished) 167 if (transformedImage && finished)
168 { 168 {
169 - NSData *dataToStore = isImageGIF ? data : nil; 169 + NSData *dataToStore = [transformedImage isEqual:downloadedImage] ? data : nil;
170 [self.imageCache storeImage:transformedImage imageData:dataToStore forKey:key toDisk:cacheOnDisk]; 170 [self.imageCache storeImage:transformedImage imageData:dataToStore forKey:key toDisk:cacheOnDisk];
171 } 171 }
172 }); 172 });