mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-14 09:55:56 -07:00
Fix typo and small cleanup.
- it addresses the comments for ab4ef56bab
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
This commit is contained in:
parent
e0686fde03
commit
896c479f95
2 changed files with 11 additions and 13 deletions
2
vips.go
2
vips.go
|
|
@ -421,7 +421,7 @@ func vipsSave(image *C.VipsImage, o vipsSaveOptions) ([]byte, error) {
|
|||
saveErr := C.int(0)
|
||||
interlace := C.int(boolToInt(o.Interlace))
|
||||
quality := C.int(o.Quality)
|
||||
strip := C.int(boolToInt(o.Interlace))
|
||||
strip := C.int(boolToInt(o.StripMetadata))
|
||||
|
||||
if o.Type != 0 && !IsTypeSupportedSave(o.Type) {
|
||||
return nil, fmt.Errorf("VIPS cannot save to %#v", ImageTypes[o.Type])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue