Fix CIGaussianBlur cropping rect

This commit is contained in:
DreamPiggy 2019-12-30 17:17:16 +08:00
parent a67ea9d371
commit 0c15223111
1 changed files with 1 additions and 0 deletions

View File

@ -575,6 +575,7 @@ static inline CIColor *SDCIColorConvertFromUIColor(UIColor * _Nonnull color) {
[filter setValue:self.CIImage forKey:kCIInputImageKey]; [filter setValue:self.CIImage forKey:kCIInputImageKey];
[filter setValue:@(blurRadius) forKey:kCIInputRadiusKey]; [filter setValue:@(blurRadius) forKey:kCIInputRadiusKey];
CIImage *ciImage = filter.outputImage; CIImage *ciImage = filter.outputImage;
ciImage = [ciImage imageByCroppingToRect:CGRectMake(0, 0, self.size.width, self.size.height)];
#if SD_UIKIT #if SD_UIKIT
UIImage *image = [UIImage imageWithCIImage:ciImage scale:self.scale orientation:self.imageOrientation]; UIImage *image = [UIImage imageWithCIImage:ciImage scale:self.scale orientation:self.imageOrientation];
#else #else