--- a/utils/HtmlOutputDev.cc +++ b/utils/HtmlOutputDev.cc @@ -1420,7 +1420,8 @@ void HtmlOutputDev::drawImage(GfxState *state, Object *ref, Stream *str, /*if( !globalParams->getErrQuiet() ) printf("image stream of kind %d\n", str->getKind());*/ // dump JPEG file - if (dumpJPEG && str->getKind() == strDCT) { + if (dumpJPEG && str->getKind() == strDCT && (colorMap->getNumPixelComps() == 1 || + colorMap->getNumPixelComps() == 3) && !inlineImg) { drawJpegImage(state, str); } else {