Copy over webp animation in gif
This commit is contained in:
parent
8536c4b968
commit
c01ac7d32f
1 changed files with 3 additions and 2 deletions
|
@ -20,8 +20,9 @@ Napi::Value ToGif(const Napi::CallbackInfo &info) {
|
||||||
} else {
|
} else {
|
||||||
VOption *options = VImage::option()->set("access", "sequential");
|
VOption *options = VImage::option()->set("access", "sequential");
|
||||||
|
|
||||||
VImage in =
|
VImage in = VImage::new_from_buffer(data.Data(), data.Length(), "",
|
||||||
VImage::new_from_buffer(data.Data(), data.Length(), "", options);
|
type == "webp" ? options->set("n", -1)
|
||||||
|
: options);
|
||||||
|
|
||||||
void *buf;
|
void *buf;
|
||||||
size_t length;
|
size_t length;
|
||||||
|
|
Loading…
Reference in a new issue