mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-11 00:10:27 -07:00
fix(#35): save webp
This commit is contained in:
parent
d4bb89a74e
commit
720c2bcf94
2 changed files with 40 additions and 30 deletions
14
vips.h
14
vips.h
|
|
@ -25,6 +25,12 @@ typedef struct {
|
|||
double Background[3];
|
||||
} WatermarkOptions;
|
||||
|
||||
void
|
||||
vips_enable_cache_set_trace()
|
||||
{
|
||||
vips_cache_set_trace(TRUE);
|
||||
};
|
||||
|
||||
int
|
||||
vips_affine_interpolator(VipsImage *in, VipsImage **out, double a, double b, double c, double d, VipsInterpolate *interpolator)
|
||||
{
|
||||
|
|
@ -144,7 +150,7 @@ vips_pngsave_bridge(VipsImage *in, void **buf, size_t *len, int strip, int compr
|
|||
int
|
||||
vips_webpsave_bridge(VipsImage *in, void **buf, size_t *len, int strip, int quality, int interlace)
|
||||
{
|
||||
return vips_webpsave_buffer(in, buf, len, "strip", strip, "Q", quality, "optimize_coding", TRUE, "interlace", interlace, NULL);
|
||||
return vips_webpsave_buffer(in, buf, len, "strip", strip, "Q", quality, NULL);
|
||||
};
|
||||
|
||||
int
|
||||
|
|
@ -243,9 +249,3 @@ vips_watermark(VipsImage *in, VipsImage **out, WatermarkTextOptions *to, Waterma
|
|||
g_object_unref(base);
|
||||
return 0;
|
||||
};
|
||||
|
||||
void
|
||||
vips_enable_cache_set_trace()
|
||||
{
|
||||
vips_cache_set_trace(TRUE);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue