gdk/gdk.go
func (v *Pixbuf) SaveJPEG(path string, quality int) error {
	cpath := C.CString(path)
	cquality := C.CString(strconv.Itoa(quality))
	defer C.free(unsafe.Pointer(cpath))
	defer C.free(unsafe.Pointer(cquality))

	var err *C.GError
	c := C._gdk_pixbuf_save_jpeg(v.native(), cpath, &err, cquality)
	if !gobool(c) {
		defer C.g_error_free(err)
		return errors.New(C.GoString((*C.char)(err.message)))
	}

	return nil
}
func (v *Pixbuf) SaveJPEG(path string, quality int) error {
	cpath := C.CString(path)
	cquality := C.CString(strconv.Itoa(quality))
	defer C.free(unsafe.Pointer(cpath))
	defer C.free(unsafe.Pointer(cquality))

	var err *C.GError
	c := C._gdk_pixbuf_save_jpeg(v.native(), cpath, &err, cquality)
	if !gobool(c) {
		defer C.g_error_free(err)
		return errors.New(C.GoString((*C.char)(err.message)))
	}

	return nil
}
func ( v * Pixbuf ) SaveJPEG ( path string , quality int ) error { cpath := C . CString ( path ) cquality := C . CString ( strconv . Itoa ( quality ) ) defer C . free ( unsafe . Pointer ( cpath ) ) defer C . free ( unsafe . Pointer ( cquality ) ) var err * C . GError c := C . _gdk_pixbuf_save_jpeg ( v . native ( ) , cpath , & err , cquality ) if ! gobool ( c ) { defer C . g_error_free ( err ) return errors . New ( C . GoString ( ( * C . char ) ( err . message ) ) ) } return nil }
// SaveJPEG is a wrapper around gdk_pixbuf_save().
// Quality is a number between 0...100
SaveJPEG is a wrapper around gdk_pixbuf_save () . Quality is a number between 0 ... 100