Skip to content

Commit d2669f5

Browse files
Update image resizing to use SKSamplingOptions.Default
1 parent 7b814e6 commit d2669f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Business/Grand.Business.Storage/Services/PictureService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ private byte[] ApplyResize(SKBitmap image, SKEncodedImageFormat format, int targ
853853

854854
try
855855
{
856-
using var resized = image.Resize(new SKImageInfo((int)width, (int)height), SKFilterQuality.High);
856+
using var resized = image.Resize(new SKImageInfo((int)width, (int)height), SKSamplingOptions.Default);
857857
using var resImage = SKImage.FromBitmap(resized);
858858
var skData = resImage.Encode(format, _mediaSettings.ImageQuality);
859859
return skData?.ToArray();

0 commit comments

Comments
 (0)