Skip to content

Commit d0dddec

Browse files
authored
Merge pull request onevcat#2294 from onevcat/Semty-blur-regression-fix
Semty blur regression fix
2 parents 4a2333d + 9054a29 commit d0dddec

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Sources/Image/ImageDrawing.swift

+9-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,15 @@ extension KingfisherWrapper where Base: KFCrossPlatformImage {
344344
guard let inputContext = CGContext.fresh(cgImage: cgImage) else {
345345
return base
346346
}
347-
inputContext.draw(cgImage, in: CGRect(x: 0, y: 0, width: size.width, height: size.height))
347+
inputContext.draw(
348+
cgImage,
349+
in: CGRect(
350+
x: 0,
351+
y: 0,
352+
width: size.width * scale,
353+
height: size.height * scale
354+
)
355+
)
348356
var inBuffer = createEffectBuffer(inputContext)
349357

350358
guard let outContext = CGContext.fresh(cgImage: cgImage) else {

0 commit comments

Comments
 (0)