mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-16 02:45:54 -07:00
merge(upstream)
This commit is contained in:
commit
82f17f66d5
2 changed files with 2 additions and 7 deletions
|
|
@ -303,7 +303,7 @@ See [godoc reference](https://godoc.org/github.com/h2non/bimg) for detailed API
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
People who recurrently contributed to improve `bimg` in some or other way.
|
People who recurrently contributed to improve `bimg` in some way.
|
||||||
|
|
||||||
- [John Cupitt](https://github.com/jcupitt)
|
- [John Cupitt](https://github.com/jcupitt)
|
||||||
- [Yoan Blanc](https://github.com/greut)
|
- [Yoan Blanc](https://github.com/greut)
|
||||||
|
|
|
||||||
|
|
@ -118,12 +118,7 @@ func Resize(buf []byte, o Options) ([]byte, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Finally get the resultant buffer
|
// Finally get the resultant buffer
|
||||||
buf, err = vipsSave(image, saveOptions)
|
return vipsSave(image, saveOptions)
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return buf, nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func applyDefaults(o *Options, imageType ImageType) {
|
func applyDefaults(o *Options, imageType ImageType) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue