mirror of
https://github.com/wisplite/raster.git
synced 2026-05-01 06:32:44 -05:00
fix image aspect ratio bugs in medialist
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user