|
|
|
@ -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) {
|
|
|
|
|