diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-08-26 14:25:59 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-08-30 16:55:25 +0200 |
commit | 594968c50e697475f05c37a2f48432d72daed262 (patch) | |
tree | 474bd9f23b1b4202fd7272138cf0ba15782b16fd | |
parent | 85ee87997e3ee4eb579084f92d109b9b78dcf9c7 (diff) | |
download | mupdf-594968c50e697475f05c37a2f48432d72daed262.tar.xz |
Fix pdfextract for optional pixmap alpha changes.
-rw-r--r-- | source/tools/pdfextract.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |