diff options
Diffstat (limited to 'source/tools')
-rw-r--r-- | source/tools/murun.c | 4 | ||||
-rw-r--r-- | source/tools/pdfextract.c | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/source/tools/murun.c b/source/tools/murun.c index c2a9f0bc..6e6e2719 100644 --- a/source/tools/murun.c +++ b/source/tools/murun.c @@ -1881,12 +1881,10 @@ static void ffi_Image_toPixmap(js_State *J) { fz_context *ctx = js_getcontext(J); fz_image *image = js_touserdata(J, 0, "fz_image"); - int w = js_isnumber(J, 1) ? js_tonumber(J, 1) : image->w; - int h = js_isnumber(J, 2) ? js_tonumber(J, 2) : image->h; fz_pixmap *pixmap = NULL; fz_try(ctx) - pixmap = fz_get_pixmap_from_image(ctx, image, w, h); + pixmap = fz_get_pixmap_from_image(ctx, image, NULL, NULL, NULL, NULL); fz_catch(ctx) rethrow(J); diff --git a/source/tools/pdfextract.c b/source/tools/pdfextract.c index 74b3654e..3f79137a 100644 --- a/source/tools/pdfextract.c +++ b/source/tools/pdfextract.c @@ -72,7 +72,7 @@ static void saveimage(int num) /* TODO: detect DCTD and save as jpeg */ image = pdf_load_image(ctx, doc, ref); - pix = fz_get_pixmap_from_image(ctx, image, 0, 0); + pix = fz_get_pixmap_from_image(ctx, image, NULL, NULL, 0, 0); fz_drop_image(ctx, image); snprintf(buf, sizeof(buf), "img-%04d", num); |