aboutsummaryrefslogtreecommitdiff
path: root/tests/Jellyfin.Drawing.Skia.Tests
AgeCommit message (Collapse)Author
2026-09-15Backport pull request #17956 from jellyfin/release-12.zShadowghost
Don't resample or sharpen images Skia isn't actually resizing Original-merge: 7d7faf08b7769af0f6c544cab59fb57316167d84 Merged-by: crobibero <cody@robibe.ro> Backported-by: Cody Robibero <cody@robibe.ro>
2026-09-02Apply the resize sharpening kernel directly instead of via SKImageFilterAlbert
Since the SkiaSharp 3 update the MatrixConvolution image filter used in SkiaEncoder.ResizeImage no longer has a fast CPU path: on the software rasterizer it takes about 4.5 seconds per megapixel-sized image, which turns every cold image request into a multi-second operation and makes first-time loads of a library view take minutes. Draw the resize without the paint filter and apply the identical 3x3 kernel (same weights, clamped edges, alpha included) directly on the resized pixels instead. This drops a cold 1000x1500 -> 663x995 poster render from ~4.6s to well under a second; the convolution pass itself takes ~86ms. Output is visually unchanged.
2026-08-28Apply review suggestionsShadowghost
2026-08-25Prevent SSRF, local file disclosure and DoS via external references in SVG ↵Shadowghost
rendering