chore(deps)!: bump to go1.25

fixes #594

Release-As: 0.18.0
This commit is contained in:
sentriz
2025-09-06 23:38:04 +01:00
parent db97bc753e
commit 1bf4a5b0c1
18 changed files with 45 additions and 63 deletions

No files matched your search

+2 -4
View File
@@ -155,11 +155,9 @@ func coverScaleAndSave(reader io.Reader, cachePath string, size int) error {
if err != nil {
return fmt.Errorf("resizing: %w", err)
}
width := size
if width > src.Bounds().Dx() {
width := min(size,
// don't upscale images
width = src.Bounds().Dx()
}
src.Bounds().Dx())
if err := imaging.Save(imaging.Resize(src, width, 0, imaging.Lanczos), cachePath); err != nil {
return fmt.Errorf("caching %q: %w", cachePath, err)
}