mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-16 10:55:54 -07:00
Raise an error when trying to save as MAGICK type
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
This commit is contained in:
parent
b02f2d89cd
commit
5dd8611579
1 changed files with 2 additions and 0 deletions
2
vips.go
2
vips.go
|
|
@ -380,6 +380,8 @@ func vipsSave(image *C.VipsImage, o vipsSaveOptions) ([]byte, error) {
|
||||||
return nil, errors.New("VIPS cannot save to PDF")
|
return nil, errors.New("VIPS cannot save to PDF")
|
||||||
case SVG:
|
case SVG:
|
||||||
return nil, errors.New("VIPS cannot save to SVG")
|
return nil, errors.New("VIPS cannot save to SVG")
|
||||||
|
case MAGICK:
|
||||||
|
return nil, errors.New("VIPS cannot save to MAGICK")
|
||||||
default:
|
default:
|
||||||
saveErr = C.vips_jpegsave_bridge(tmpImage, &ptr, &length, 1, quality, interlace)
|
saveErr = C.vips_jpegsave_bridge(tmpImage, &ptr, &length, 1, quality, interlace)
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue