Update SDWebImage/SDWebImageCompat.m
This commit is contained in:
parent
042c27ec8c
commit
2ac9b2fc6a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue