1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-12-01 23:11:31 +02:00

Add SVG pasthrough

This commit is contained in:
DarthSim
2019-10-01 18:08:30 +06:00
parent 0de6fc0aa6
commit aa5ce8be8d
5 changed files with 27 additions and 6 deletions

View File

@@ -641,7 +641,7 @@ func applyFormatOption(po *processingOptions, args []string) error {
return fmt.Errorf("Invalid image format: %s", args[0])
}
if !vipsTypeSupportSave[po.Format] {
if !imageTypeSaveSupport(po.Format) {
return fmt.Errorf("Resulting image format is not supported: %s", po.Format)
}