Refactor error handling and improve code readability
All checks were successful
🚨 Test Code Base / 🔍 🐹 Go Tests (push) Successful in 1m3s
🚨 Test Code Base / 🧹 Lint (push) Successful in 1m20s

This commit is contained in:
2025-08-26 12:33:09 -04:00
parent 586c434e6a
commit 537427f4d4
6 changed files with 40 additions and 15 deletions

View File

@@ -3,10 +3,11 @@ package resize
import (
"bytes"
"fmt"
"github.com/nfnt/resize"
i "image"
"image/jpeg"
_ "image/png"
"github.com/nfnt/resize"
)
func Shrink(image string, maxSize uint, quality int) (string, error) {