mirror of
https://github.com/willnorris/imageproxy.git
synced 2024-12-30 22:34:18 -05:00
quality adjustment is a transforming option
allow transformation where all that is changed is the image quality and nothing else.
This commit is contained in:
parent
b5984d2822
commit
a85bfef357
1 changed files with 3 additions and 3 deletions
6
data.go
6
data.go
|
@ -110,10 +110,10 @@ func (o Options) String() string {
|
||||||
|
|
||||||
// transform returns whether o includes transformation options. Some fields
|
// transform returns whether o includes transformation options. Some fields
|
||||||
// are not transform related at all (like Signature), and others only apply in
|
// 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
|
// the presence of other fields (like Fit). A non-empty Format value is
|
||||||
// value is assumed to involve a transformation.
|
// assumed to involve a transformation.
|
||||||
func (o Options) transform() bool {
|
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.
|
// ParseOptions parses str as a list of comma separated transformation options.
|
||||||
|
|
Loading…
Reference in a new issue