From a85bfef3570ccd3c05a85db06c5b9aee7f7b5b9f Mon Sep 17 00:00:00 2001 From: Will Norris Date: Thu, 1 Jun 2017 09:40:12 -0700 Subject: [PATCH] quality adjustment is a transforming option allow transformation where all that is changed is the image quality and nothing else. --- data.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data.go b/data.go index 2e2c226..0e2c28b 100644 --- a/data.go +++ b/data.go @@ -110,10 +110,10 @@ func (o Options) String() string { // transform returns whether o includes transformation options. Some fields // are not transform related at all (like Signature), and others only apply in -// the presence of other fields (like Fit and Quality). A non-empty Format -// value is assumed to involve a transformation. +// the presence of other fields (like Fit). A non-empty Format value is +// assumed to involve a transformation. func (o Options) transform() bool { - return o.Width != 0 || o.Height != 0 || o.Rotate != 0 || o.FlipHorizontal || o.FlipVertical || o.Format != "" + return o.Width != 0 || o.Height != 0 || o.Rotate != 0 || o.FlipHorizontal || o.FlipVertical || o.Quality != 0 || o.Format != "" } // ParseOptions parses str as a list of comma separated transformation options.