Update README and config.json (#260)

This commit is contained in:
Nova Kwok 2023-07-21 15:41:26 +08:00 committed by GitHub
parent a7b9e90fab
commit cd0a83a596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@
This is a Server based on Golang, which allows you to serve WebP images on the fly. 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 > e.g When you visit `https://your.website/pics/tsuki.jpg`it will serve as `image/webp` format without changing the
> URL. > URL.

View File

@ -4,7 +4,7 @@
"QUALITY": "80", "QUALITY": "80",
"IMG_PATH": "./pics", "IMG_PATH": "./pics",
"EXHAUST_PATH": "./exhaust", "EXHAUST_PATH": "./exhaust",
"ALLOWED_TYPES": ["jpg","png","jpeg","bmp","gif"], "ALLOWED_TYPES": ["jpg","png","jpeg","bmp","gif","svg"],
"ENABLE_AVIF": false, "ENABLE_AVIF": false,
"ENABLE_EXTRA_PARAMS": false "ENABLE_EXTRA_PARAMS": false
} }

View File

@ -26,7 +26,7 @@ const (
"QUALITY": "80", "QUALITY": "80",
"IMG_PATH": "./pics", "IMG_PATH": "./pics",
"EXHAUST_PATH": "./exhaust", "EXHAUST_PATH": "./exhaust",
"ALLOWED_TYPES": ["jpg","png","jpeg","bmp"], "ALLOWED_TYPES": ["jpg","png","jpeg","bmp","svg"],
"ENABLE_AVIF": false, "ENABLE_AVIF": false,
"ENABLE_EXTRA_PARAMS": false "ENABLE_EXTRA_PARAMS": false
}` }`