set reoptimize to override input GCT (#287)
This commit is contained in:
parent
2967a5eddc
commit
207d950a6c
11 changed files with 11 additions and 11 deletions
|
@ -62,7 +62,7 @@ Napi::Value Caption(const Napi::CallbackInfo &info) {
|
|||
size_t length;
|
||||
final.write_to_buffer(
|
||||
("." + type).c_str(), &buf, &length,
|
||||
type == "gif" ? VImage::option()->set("dither", 0) : 0);
|
||||
type == "gif" ? VImage::option()->set("dither", 0)->set("reoptimise", 1) : 0);
|
||||
|
||||
vips_thread_shutdown();
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ Napi::Value CaptionTwo(const Napi::CallbackInfo &info) {
|
|||
size_t length;
|
||||
final.write_to_buffer(
|
||||
("." + type).c_str(), &buf, &length,
|
||||
type == "gif" ? VImage::option()->set("dither", 0) : 0);
|
||||
type == "gif" ? VImage::option()->set("dither", 0)->set("reoptimise", 1) : 0);
|
||||
|
||||
vips_thread_shutdown();
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ Napi::Value Crop(const Napi::CallbackInfo &info) {
|
|||
size_t length;
|
||||
final.write_to_buffer(
|
||||
("." + type).c_str(), &buf, &length,
|
||||
type == "gif" ? VImage::option()->set("dither", 0) : 0);
|
||||
type == "gif" ? VImage::option()->set("dither", 0)->set("reoptimise", 1) : 0);
|
||||
|
||||
vips_thread_shutdown();
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ Napi::Value Flag(const Napi::CallbackInfo &info) {
|
|||
size_t length;
|
||||
final.write_to_buffer(
|
||||
("." + type).c_str(), &buf, &length,
|
||||
type == "gif" ? VImage::option()->set("dither", 0) : 0);
|
||||
type == "gif" ? VImage::option()->set("dither", 0)->set("reoptimise", 1) : 0);
|
||||
|
||||
Napi::Object result = Napi::Object::New(env);
|
||||
result.Set("data", Napi::Buffer<char>::Copy(env, (char *)buf, length));
|
||||
|
|
|
@ -49,7 +49,7 @@ Napi::Value Gamexplain(const Napi::CallbackInfo &info) {
|
|||
size_t length;
|
||||
final.write_to_buffer(
|
||||
("." + type).c_str(), &buf, &length,
|
||||
type == "gif" ? VImage::option()->set("dither", 0) : 0);
|
||||
type == "gif" ? VImage::option()->set("dither", 0)->set("reoptimise", 1) : 0);
|
||||
|
||||
vips_thread_shutdown();
|
||||
|
||||
|
|
|
@ -128,7 +128,7 @@ Napi::Value Meme(const Napi::CallbackInfo &info) {
|
|||
size_t length;
|
||||
final.write_to_buffer(
|
||||
("." + type).c_str(), &buf, &length,
|
||||
type == "gif" ? VImage::option()->set("dither", 0) : 0);
|
||||
type == "gif" ? VImage::option()->set("dither", 0)->set("reoptimise", 1) : 0);
|
||||
|
||||
vips_thread_shutdown();
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ Napi::Value Reddit(const Napi::CallbackInfo &info) {
|
|||
size_t length;
|
||||
final.write_to_buffer(
|
||||
("." + type).c_str(), &buf, &length,
|
||||
type == "gif" ? VImage::option()->set("dither", 0) : 0);
|
||||
type == "gif" ? VImage::option()->set("dither", 0)->set("reoptimise", 1) : 0);
|
||||
|
||||
vips_thread_shutdown();
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ Napi::Value Snapchat(const Napi::CallbackInfo &info) {
|
|||
size_t length;
|
||||
final.write_to_buffer(
|
||||
("." + type).c_str(), &buf, &length,
|
||||
type == "gif" ? VImage::option()->set("dither", 0) : 0);
|
||||
type == "gif" ? VImage::option()->set("dither", 0)->set("reoptimise", 1) : 0);
|
||||
|
||||
vips_thread_shutdown();
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ Napi::Value Uncaption(const Napi::CallbackInfo &info) {
|
|||
size_t length;
|
||||
final.write_to_buffer(
|
||||
("." + type).c_str(), &buf, &length,
|
||||
type == "gif" ? VImage::option()->set("dither", 0) : 0);
|
||||
type == "gif" ? VImage::option()->set("dither", 0)->set("reoptimise", 1) : 0);
|
||||
|
||||
vips_thread_shutdown();
|
||||
|
||||
|
|
|
@ -154,7 +154,7 @@ Napi::Value Watermark(const Napi::CallbackInfo &info) {
|
|||
size_t length;
|
||||
final.write_to_buffer(
|
||||
("." + type).c_str(), &buf, &length,
|
||||
type == "gif" ? VImage::option()->set("dither", 0) : 0);
|
||||
type == "gif" ? VImage::option()->set("dither", 0)->set("reoptimise", 1) : 0);
|
||||
|
||||
vips_thread_shutdown();
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ Napi::Value Whisper(const Napi::CallbackInfo &info) {
|
|||
size_t length;
|
||||
final.write_to_buffer(
|
||||
("." + type).c_str(), &buf, &length,
|
||||
type == "gif" ? VImage::option()->set("dither", 0) : 0);
|
||||
type == "gif" ? VImage::option()->set("dither", 0)->set("reoptimise", 1) : 0);
|
||||
|
||||
vips_thread_shutdown();
|
||||
|
||||
|
|
Loading…
Reference in a new issue