Fix CIGaussianBlur cropping rect
This commit is contained in:
parent
a67ea9d371
commit
0c15223111
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue