repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
aa2149e
parent
f27efe4
author
Eric Bower
date
2023-03-15 23:10:16 +0000 UTC
bug(imgs): resize regression because of incorrect switch case
1 files changed,  +1, -5
M shared/img.go
+1, -5
 1@@ -62,11 +62,7 @@ func GetImageForOptimization(r io.Reader, mimeType string) (image.Image, error)
 2 
 3 func IsWebOptimized(mimeType string) bool {
 4 	switch mimeType {
 5-	case "image/png":
 6-	case "image/jpeg":
 7-	case "image/jpg":
 8-	case "image/gif":
 9-	case "image/webp":
10+	case "image/png", "image/jpeg", "image/jpg", "image/gif", "image/webp":
11 		return true
12 	}
13