The Free Software Media System - Server Backend & API
Fix collages
cvium1dcc678a6afe
diff --git a/Jellyfin.Drawing.Skia/StripCollageBuilder.cs b/Jellyfin.Drawing.Skia/StripCollageBuilder.csindex b08c3750d7..10bb59648f 100644--- a/Jellyfin.Drawing.Skia/StripCollageBuilder.cs+++ b/Jellyfin.Drawing.Skia/StripCollageBuilder.cs@@ -115,7 +115,7 @@ namespace Jellyfin.Drawing.Skia// resize to the same aspect as the originalint iWidth = Math.Abs(iHeight * currentBitmap.Width / currentBitmap.Height);- using var resizedImage = SkiaEncoder.ResizeImage(bitmap, new SKImageInfo(iWidth, iHeight, currentBitmap.ColorType, currentBitmap.AlphaType, currentBitmap.ColorSpace));+ using var resizedImage = SkiaEncoder.ResizeImage(currentBitmap, new SKImageInfo(iWidth, iHeight, currentBitmap.ColorType, currentBitmap.AlphaType, currentBitmap.ColorSpace));// crop imageint ix = Math.Abs((iWidth - iSlice) / 2);@@ -177,7 +177,7 @@ namespace Jellyfin.Drawing.Skia// Scale image. The FromBitmap creates a copyvar imageInfo = new SKImageInfo(cellWidth, cellHeight, currentBitmap.ColorType, currentBitmap.AlphaType, currentBitmap.ColorSpace);- using var resizedBitmap = SKBitmap.FromImage(SkiaEncoder.ResizeImage(bitmap, imageInfo));+ using var resizedBitmap = SKBitmap.FromImage(SkiaEncoder.ResizeImage(currentBitmap, imageInfo));// draw this image into the strip at the next positionvar xPos = x * cellWidth;