1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-01-08 10:45:04 +02:00

Fix focus point gravity in basic URL format

This commit is contained in:
DarthSim 2018-10-03 19:34:53 +06:00
parent 2840994719
commit a47e111069

View File

@ -508,7 +508,7 @@ func parsePathSimple(parts []string, acceptHeader string) (string, processingOpt
return "", po, err
}
if err = applyGravityOption(&po, parts[3:4]); err != nil {
if err = applyGravityOption(&po, strings.Split(parts[3], ":")); err != nil {
return "", po, err
}
@ -551,7 +551,7 @@ func parsePath(r *http.Request) (string, processingOptions, error) {
if _, ok := resizeTypes[parts[1]]; ok {
return parsePathSimple(parts[1:], acceptHeader)
} else {
return parsePathAdvanced(parts[1:], acceptHeader)
}
return parsePathAdvanced(parts[1:], acceptHeader)
}