You've already forked imgproxy
mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-11-29 23:07:40 +02:00
Precheck vips image types support
This commit is contained in:
@@ -77,7 +77,7 @@ func parsePath(r *http.Request) (string, processingOptions, error) {
|
||||
return "", po, fmt.Errorf("Invalid image format: %s", filenameParts[1])
|
||||
}
|
||||
|
||||
if !vipsTypeSupportedSave(po.format) {
|
||||
if !vipsTypeSupportSave[po.format] {
|
||||
return "", po, errors.New("Resulting image type not supported")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user