[poppler] Branch 'poppler-0.10' - utils/ImageOutputDev.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Wed Jan 28 15:52:55 PST 2009


 utils/ImageOutputDev.cc |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 3deb229bc5b223b3ff3ae6689ddbb463907341c0
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