From 53524b63b624afc60aff0fdc77e7c91ab6bc5499 Mon Sep 17 00:00:00 2001 From: "Rafael.Shamilov" Date: Wed, 9 Oct 2024 17:26:50 +0300 Subject: [PATCH] fix check resolution and use PageHeight in condition --- vips/processor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vips/processor.go b/vips/processor.go index 3456173ff..81efb55dd 100644 --- a/vips/processor.go +++ b/vips/processor.go @@ -355,7 +355,7 @@ func (v *Processor) CheckResolution(img *Image, err error) (*Image, error) { return img, err } if img.Width() > v.MaxWidth || img.PageHeight() > v.MaxHeight || - (img.Width()*img.Height()) > v.MaxResolution { + (img.Width()*img.PageHeight()) > v.MaxResolution { img.Close() return nil, imagor.ErrMaxResolutionExceeded }