Authored by Pete Callaway
Committed by Dan Dofter

Don’t pass the original image data to be cached if the image has been transforme…

…d as transparency may have been added
... ... @@ -210,7 +210,7 @@
if (transformedImage && finished) {
BOOL imageWasTransformed = ![transformedImage isEqual:downloadedImage];
[self.imageCache storeImage:transformedImage recalculateFromImage:imageWasTransformed imageData:data forKey:key toDisk:cacheOnDisk];
[self.imageCache storeImage:transformedImage recalculateFromImage:imageWasTransformed imageData:imageWasTransformed ? nil : data forKey:key toDisk:cacheOnDisk];
}
dispatch_main_sync_safe(^{
... ...