Update SDWebImage/SDWebImageCompat.m

This commit is contained in:
Noah 2018-10-30 15:00:25 +08:00
parent 042c27ec8c
commit 2ac9b2fc6a
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ inline UIImage *SDScaledImageForKey(NSString * _Nullable key, UIImage * _Nullabl
}
}
if (scale != 1) {
if (scale != image.scale) {
UIImage *scaledImage = [[UIImage alloc] initWithCGImage:image.CGImage scale:scale orientation:image.imageOrientation];
scaledImage.sd_imageFormat = image.sd_imageFormat;
image = scaledImage;