1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2024-11-24 08:12:38 +02:00

Fix SVG loading support check

This commit is contained in:
DarthSim 2019-10-01 18:21:31 +06:00
parent 1274010010
commit 72049f3b88

View File

@ -580,6 +580,10 @@ func processImage(ctx context.Context) ([]byte, context.CancelFunc, error) {
return imgdata.Data, func() {}, nil
}
if imgdata.Type == imageTypeSVG && !vipsTypeSupportLoad[imageTypeSVG] {
return []byte{}, func() {}, errSourceImageTypeNotSupported
}
if !vipsSupportSmartcrop {
if po.Gravity.Type == gravitySmart {
logWarning(msgSmartCropNotSupported)