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:
parent
1274010010
commit
72049f3b88
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user