Fix delay bug on jpeg/deepfry, remove mc/blurple
This commit is contained in:
parent
4ac90bc761
commit
9d7ba365c8
5 changed files with 3 additions and 54 deletions
|
@ -26,9 +26,7 @@ Napi::Value Colors(const Napi::CallbackInfo &info) {
|
|||
|
||||
VImage out;
|
||||
|
||||
if (color == "blurple") {
|
||||
out = in;
|
||||
} else if (color == "grayscale") {
|
||||
if (color == "grayscale") {
|
||||
out = in.colourspace(VIPS_INTERPRETATION_B_W);
|
||||
} else if (color == "sepia") {
|
||||
out = in.flatten().recomb(sepia);
|
||||
|
|
|
@ -32,7 +32,7 @@ Napi::Value Deepfry(const Napi::CallbackInfo &info) {
|
|||
VImage::option()->set("Q", 1)->set("strip", true));
|
||||
VImage final = VImage::new_from_buffer(jpgBuf, jpgLength, "");
|
||||
final.set(VIPS_META_PAGE_HEIGHT, page_height);
|
||||
final.set("delay", fried.get_array_int("delay"));
|
||||
if (type == "gif") final.set("delay", fried.get_array_int("delay"));
|
||||
|
||||
void *buf;
|
||||
size_t length;
|
||||
|
|
|
@ -35,7 +35,7 @@ Napi::Value Jpeg(const Napi::CallbackInfo &info) {
|
|||
VImage::option()->set("Q", quality)->set("strip", true));
|
||||
VImage final = VImage::new_from_buffer(jpgBuf, jpgLength, "");
|
||||
final.set(VIPS_META_PAGE_HEIGHT, page_height);
|
||||
final.set("delay", in.get_array_int("delay"));
|
||||
if (type == "gif") final.set("delay", in.get_array_int("delay"));
|
||||
|
||||
void *buf;
|
||||
size_t length;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue