From d2a1ffe2dea719faea0282fc8f09271103ea0a6a Mon Sep 17 00:00:00 2001 From: Essem Date: Wed, 1 Jun 2022 12:34:23 -0500 Subject: [PATCH] Fix uncaption not cropping on non-gif images --- natives/uncaption.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/natives/uncaption.cc b/natives/uncaption.cc index d0d5901..9a56cc7 100644 --- a/natives/uncaption.cc +++ b/natives/uncaption.cc @@ -38,9 +38,8 @@ Napi::Value Uncaption(const Napi::CallbackInfo &info) { vector img; for (int i = 0; i < n_pages; i++) { - VImage img_frame = type == "gif" ? in.crop(0, (i * page_height) + top, - width, page_height - top) - : in; + VImage img_frame = + in.crop(0, (i * page_height) + top, width, page_height - top); img.push_back(img_frame); } VImage final = VImage::arrayjoin(img, VImage::option()->set("across", 1));