fix image aspect ratio bugs in medialist

This commit is contained in:
wisplite
2025-11-25 09:31:18 -06:00
parent da459fadf2
commit a484633bf5
4 changed files with 8 additions and 9 deletions
+1 -1
View File
@@ -185,7 +185,7 @@ func GetThumbnail(albumID string, mediaID string, width int, height int) (string
}
}
dstImage := imaging.Fill(srcImage, width, height, imaging.Center, imaging.Lanczos)
dstImage := imaging.Fit(srcImage, width, height, imaging.Lanczos)
err = imaging.Save(dstImage, thumbPath)
if err != nil {