From 2f5b819d48d18e56a45588242a4915140800925b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 23 Jan 2025 18:25:15 +0000 Subject: [PATCH 1/2] Bump SkiaSharp from 2.88.9 to 3.116.1 Bumps SkiaSharp from 2.88.9 to 3.116.1. --- updated-dependencies: - dependency-name: SkiaSharp dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .../ImageGallery.Functions/ImageGallery.Functions.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/AspireWithAzureFunctions/ImageGallery.Functions/ImageGallery.Functions.csproj b/samples/AspireWithAzureFunctions/ImageGallery.Functions/ImageGallery.Functions.csproj index 777a0dcf..02d20f3b 100644 --- a/samples/AspireWithAzureFunctions/ImageGallery.Functions/ImageGallery.Functions.csproj +++ b/samples/AspireWithAzureFunctions/ImageGallery.Functions/ImageGallery.Functions.csproj @@ -18,7 +18,7 @@ - + From e10e30d1e7e22dd0ee9b8321c89d196ae66d5567 Mon Sep 17 00:00:00 2001 From: Dan Moseley Date: Thu, 23 Jan 2025 11:53:55 -0700 Subject: [PATCH 2/2] Fix CS0163 using https://github.com/mono/SkiaSharp/blob/2387a335ffdc627cd09513716541ca2cbec6484e/binding/SkiaSharp/SKPaint.cs#L33 --- .../ImageGallery.Functions/ThumbnailGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/AspireWithAzureFunctions/ImageGallery.Functions/ThumbnailGenerator.cs b/samples/AspireWithAzureFunctions/ImageGallery.Functions/ThumbnailGenerator.cs index 4c1898bf..2e181187 100644 --- a/samples/AspireWithAzureFunctions/ImageGallery.Functions/ThumbnailGenerator.cs +++ b/samples/AspireWithAzureFunctions/ImageGallery.Functions/ThumbnailGenerator.cs @@ -44,7 +44,7 @@ private MemoryStream GetResizedImageStream(string name, Stream stream, SKEncoded var targetWidth = (int)(originalBitmap.Width * scale); using var resizedBitmap = originalBitmap.Resize( - new SKImageInfo(targetWidth, TargetHeight), SKFilterQuality.High); + new SKImageInfo(targetWidth, TargetHeight), new SKSamplingOptions (SKCubicResampler.Mitchell)); using var image = SKImage.FromBitmap(resizedBitmap);