From 594968c50e697475f05c37a2f48432d72daed262 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 26 Aug 2016 14:25:59 +0200 Subject: Fix pdfextract for optional pixmap alpha changes. --- source/tools/pdfextract.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/tools/pdfextract.c b/source/tools/pdfextract.c index 92a86be2..bc80f0ac 100644 --- a/source/tools/pdfextract.c +++ b/source/tools/pdfextract.c @@ -44,7 +44,7 @@ static void writepixmap(fz_context *ctx, fz_pixmap *pix, char *file, int rgb) pix = converted; } - if (pix->n <= 4) + if (pix->n - pix->alpha <= 3) { snprintf(buf, sizeof(buf), "%s.png", file); printf("extracting image %s\n", buf); -- cgit v1.2.3