From f9507b38ab6330c2955c44e3094e7ac29bd9fabe Mon Sep 17 00:00:00 2001 From: esimov Date: Fri, 2 Nov 2018 09:42:29 +0200 Subject: [PATCH] Small changes --- process.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process.go b/process.go index a915f6e..bfedff0 100644 --- a/process.go +++ b/process.go @@ -115,7 +115,7 @@ func (p *Processor) Resize(img *image.NRGBA) (image.Image, error) { // the tool first rescale the image to 1024x768, then it will remove the remaining 268px. if p.Scale { if p.NewWidth > img.Bounds().Max.X || p.NewHeight > img.Bounds().Max.Y { - return nil, errors.New("p.Scale option can not be used on image enlargement") + return nil, errors.New("scale option can not be used on image enlargement") } // Preserve the aspect ratio on horizontal or vertical axes. if p.NewWidth > p.NewHeight {