summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-08-26 14:25:59 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-08-30 16:55:25 +0200
commit594968c50e697475f05c37a2f48432d72daed262 (patch)
tree474bd9f23b1b4202fd7272138cf0ba15782b16fd /source
parent85ee87997e3ee4eb579084f92d109b9b78dcf9c7 (diff)
downloadmupdf-594968c50e697475f05c37a2f48432d72daed262.tar.xz
Fix pdfextract for optional pixmap alpha changes.
Diffstat (limited to 'source')
-rw-r--r--source/tools/pdfextract.c2
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);