From 01336bd3cd0ee47af03f10c1f8ee09f4da48ad97 Mon Sep 17 00:00:00 2001 From: yang Date: Sat, 15 Jul 2023 00:30:51 +0800 Subject: [PATCH] Fix bug #3564 decodedAndScaledDownImageWithImage may not render the image completely when met the specified image size. --- SDWebImage/Core/SDImageCoderHelper.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/Core/SDImageCoderHelper.m b/SDWebImage/Core/SDImageCoderHelper.m index 6b9d650b..0d5fe45d 100644 --- a/SDWebImage/Core/SDImageCoderHelper.m +++ b/SDWebImage/Core/SDImageCoderHelper.m @@ -721,7 +721,7 @@ static const CGFloat kDestSeemOverlap = 2.0f; // the numbers of pixels to over sourceTileImageRef = CGImageCreateWithImageInRect( sourceImageRef, sourceTile ); if( y == iterations - 1 && remainder ) { float dify = destTile.size.height; - destTile.size.height = CGImageGetHeight( sourceTileImageRef ) * imageScale; + destTile.size.height = CGImageGetHeight( sourceTileImageRef ) * imageScale + kDestSeemOverlap; dify -= destTile.size.height; destTile.origin.y = MIN(0, destTile.origin.y + dify); }