mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-07 21:48:13 -08:00
fix(vips): bad argument
This commit is contained in:
parent
bccb857553
commit
b93919d182
1 changed files with 1 additions and 3 deletions
4
vips.h
4
vips.h
|
|
@ -128,7 +128,7 @@ vips_pngsave_bridge(VipsImage *in, void **buf, size_t *len, int strip, int compr
|
|||
return vips_pngsave_buffer(in, buf, len, "strip", FALSE, "compression", compression,
|
||||
"interlace", interlace, "filter", VIPS_FOREIGN_PNG_FILTER_NONE, NULL);
|
||||
#else
|
||||
return vips_pngsave_buffer(image, buf, len, "strip", FALSE, "compression", compression,
|
||||
return vips_pngsave_buffer(in, buf, len, "strip", FALSE, "compression", compression,
|
||||
"interlace", interlace, NULL);
|
||||
#endif
|
||||
};
|
||||
|
|
@ -151,10 +151,8 @@ vips_init_image(void *buf, size_t len, int imageType, VipsImage **out) {
|
|||
code = vips_webpload_buffer(buf, len, out, "access", VIPS_ACCESS_SEQUENTIAL, NULL);
|
||||
} else if (imageType == TIFF) {
|
||||
code = vips_tiffload_buffer(buf, len, out, "access", VIPS_ACCESS_SEQUENTIAL, NULL);
|
||||
#if (VIPS_MAJOR_VERSION >= 8)
|
||||
} else if (imageType == MAGICK) {
|
||||
code = vips_magickload_buffer(buf, len, out, "access", VIPS_ACCESS_SEQUENTIAL, NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
// Listen for "postclose" signal to delete input buffer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue