Fix typo and small cleanup.

- it addresses the comments for ab4ef56bab

Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
This commit is contained in:
Yoan Blanc 2017-09-11 10:00:06 -04:00
parent e0686fde03
commit 896c479f95
No known key found for this signature in database
GPG key ID: 6058CF4574298812
2 changed files with 11 additions and 13 deletions

View file

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