Merge pull request #383 from garthex/white_png_issue
fix alpha pngs turning into white pngs
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -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 | }); |
-
Please register or login to post a comment