You've already forked imgproxy
mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-12-05 23:28:10 +02:00
Typo
This commit is contained in:
@@ -13,7 +13,7 @@ func trim(pctx *pipelineContext, img *vips.Image, po *options.ProcessingOptions,
|
||||
return nil
|
||||
}
|
||||
|
||||
// The size of a vector image are not checked during download, yet it can be very large.
|
||||
// The size of a vector image is not checked during download, yet it can be very large.
|
||||
// So we should scale it down to the maximum allowed resolution
|
||||
if imgdata != nil && imgdata.Type.IsVector() {
|
||||
if resolution := img.Width() * img.Height(); resolution > po.SecurityOptions.MaxSrcResolution {
|
||||
|
||||
Reference in New Issue
Block a user