mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-24 20:36:24 +02:00
parent
d825852025
commit
a71584a63c
3 changed files with 10 additions and 3 deletions
|
|
@ -35,7 +35,7 @@ var resampleFilter = imaging.Lanczos
|
|||
// encoded image in one of the supported formats (gif, jpeg, or png). The
|
||||
// bytes of a similarly encoded image is returned.
|
||||
func Transform(img []byte, opt Options) ([]byte, error) {
|
||||
if opt == emptyOptions {
|
||||
if !opt.transform() {
|
||||
// bail if no transformation was requested
|
||||
return img, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue