From beed1bb9885c18cfa1410868d1f718e2c19bf715 Mon Sep 17 00:00:00 2001 From: cococe Date: Sun, 13 Aug 2023 13:25:51 +0800 Subject: [PATCH] Addressing the issue in mutool-wasm where pixmap.asJPEG cannot be configured to set image quality. --- source/fitz/output-jpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/fitz/output-jpeg.c b/source/fitz/output-jpeg.c index e09c1af31a..eab24034ca 100644 --- a/source/fitz/output-jpeg.c +++ b/source/fitz/output-jpeg.c @@ -257,7 +257,7 @@ fz_save_pixmap_as_jpeg(fz_context *ctx, fz_pixmap *pixmap, const char *filename, } static fz_buffer * -jpeg_from_pixmap(fz_context *ctx, fz_pixmap *pix, fz_color_params color_params, int quality, int drop) +jpeg_from_pixmap(fz_context *ctx, fz_pixmap *pix, fz_color_params color_params, int drop, int quality) { fz_buffer *buf = NULL; fz_output *out = NULL;