From 0c152231116e9d9aefb558ab82dc66eae8923eb6 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Mon, 30 Dec 2019 17:17:16 +0800 Subject: [PATCH] Fix CIGaussianBlur cropping rect --- SDWebImage/Core/UIImage+Transform.m | 1 + 1 file changed, 1 insertion(+) diff --git a/SDWebImage/Core/UIImage+Transform.m b/SDWebImage/Core/UIImage+Transform.m index fa3841e2..7a321c1f 100644 --- a/SDWebImage/Core/UIImage+Transform.m +++ b/SDWebImage/Core/UIImage+Transform.m @@ -575,6 +575,7 @@ static inline CIColor *SDCIColorConvertFromUIColor(UIColor * _Nonnull color) { [filter setValue:self.CIImage forKey:kCIInputImageKey]; [filter setValue:@(blurRadius) forKey:kCIInputRadiusKey]; CIImage *ciImage = filter.outputImage; + ciImage = [ciImage imageByCroppingToRect:CGRectMake(0, 0, self.size.width, self.size.height)]; #if SD_UIKIT UIImage *image = [UIImage imageWithCIImage:ciImage scale:self.scale orientation:self.imageOrientation]; #else