diff --git a/README.md b/README.md index b7b512c..a8b5321 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ This is a Server based on Golang, which allows you to serve WebP images on the fly. -* currently supported image format: JPEG, PNG, BMP, GIF +* currently supported image format: JPEG, PNG, BMP, GIF, SVG > e.g When you visit `https://your.website/pics/tsuki.jpg`,it will serve as `image/webp` format without changing the > URL. diff --git a/config.json b/config.json index 14051ee..a6f76e1 100644 --- a/config.json +++ b/config.json @@ -4,7 +4,7 @@ "QUALITY": "80", "IMG_PATH": "./pics", "EXHAUST_PATH": "./exhaust", - "ALLOWED_TYPES": ["jpg","png","jpeg","bmp","gif"], + "ALLOWED_TYPES": ["jpg","png","jpeg","bmp","gif","svg"], "ENABLE_AVIF": false, "ENABLE_EXTRA_PARAMS": false } diff --git a/config/config.go b/config/config.go index 8872184..d225b46 100644 --- a/config/config.go +++ b/config/config.go @@ -26,7 +26,7 @@ const ( "QUALITY": "80", "IMG_PATH": "./pics", "EXHAUST_PATH": "./exhaust", - "ALLOWED_TYPES": ["jpg","png","jpeg","bmp"], + "ALLOWED_TYPES": ["jpg","png","jpeg","bmp","svg"], "ENABLE_AVIF": false, "ENABLE_EXTRA_PARAMS": false }`