[poppler] utils/ImageOutputDev.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Wed Jan 28 15:51:58 PST 2009
utils/ImageOutputDev.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 2df6d530cd9acd8648a6196031218ef10e7b3891
Author: Albert Astals Cid <aacid at kde.org>
Date: Thu Jan 29 00:51:13 2009 +0100
Add line that for some reason was not imported from xpdf file
Fixes bug 19789
diff --git a/utils/ImageOutputDev.cc b/utils/ImageOutputDev.cc
index fe4f0a6..be3807f 100644
--- a/utils/ImageOutputDev.cc
+++ b/utils/ImageOutputDev.cc
@@ -130,7 +130,8 @@ void ImageOutputDev::drawImage(GfxState *state, Object *ref, Stream *str,
// dump JPEG file
if (dumpJPEG && str->getKind() == strDCT &&
- colorMap->getNumPixelComps() == 3 &&
+ (colorMap->getNumPixelComps() == 1 ||
+ colorMap->getNumPixelComps() == 3) &&
!inlineImg) {
// open the image file
More information about the poppler
mailing list