Added progressive jpeg functionality.

This commit is contained in:
Brant Fitzsimmons 2015-06-10 18:55:58 -04:00
parent b6bc20df55
commit 0019d370e9
5 changed files with 8 additions and 2 deletions

View file

@ -35,6 +35,7 @@ type vipsSaveOptions struct {
Quality int
Compression int
Type ImageType
Interlace int
}
type vipsWatermarkOptions struct {
@ -235,7 +236,7 @@ func vipsSave(image *C.struct__VipsImage, o vipsSaveOptions) ([]byte, error) {
break
default:
debug("Save JPEG options: Q: %s", o.Quality)
err = C.vips_jpegsave_bridge(image, &ptr, &length, 1, C.int(o.Quality), 0)
err = C.vips_jpegsave_bridge(image, &ptr, &length, 1, C.int(o.Quality), C.int(o.Interlace))
break
}