From b90f73c4b59e9c32f1507157605750f0aa7f79ea Mon Sep 17 00:00:00 2001 From: DarthSim Date: Fri, 17 Nov 2023 16:43:24 +0300 Subject: [PATCH] Typo --- processing/prepare.go | 2 +- processing/trim.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/processing/prepare.go b/processing/prepare.go index 7df08ff5..8557fad5 100644 --- a/processing/prepare.go +++ b/processing/prepare.go @@ -168,7 +168,7 @@ func prepare(pctx *pipelineContext, img *vips.Image, po *options.ProcessingOptio pctx.wscale, pctx.hscale, pctx.dprScale = calcScale(widthToScale, heightToScale, po, pctx.imgtype) - // 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 !pctx.trimmed && imgdata != nil && imgdata.Type.IsVector() && !po.Enlarge { resolution := imath.Round((float64(img.Width()*img.Height()) * pctx.wscale * pctx.hscale)) diff --git a/processing/trim.go b/processing/trim.go index b6ecf48f..77cd72a6 100644 --- a/processing/trim.go +++ b/processing/trim.go @@ -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 {