commit
3d62cfc507
|
@ -57,10 +57,12 @@ inline UIImage *SDScaledImageForKey(NSString * _Nullable key, UIImage * _Nullabl
|
|||
}
|
||||
}
|
||||
|
||||
if (scale != image.scale) {
|
||||
UIImage *scaledImage = [[UIImage alloc] initWithCGImage:image.CGImage scale:scale orientation:image.imageOrientation];
|
||||
scaledImage.sd_imageFormat = image.sd_imageFormat;
|
||||
image = scaledImage;
|
||||
}
|
||||
}
|
||||
return image;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue