[Poppler-bugs] [Bug 46600] [patch] pdftops git 25Feb12 restore deleted binary code and level2sep fixed

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Feb 25 01:46:26 PST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=46600

thomasf <Thomas.Freitag at alfa.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Thomas.Freitag at alfa.de

--- Comment #2 from thomasf <Thomas.Freitag at alfa.de> 2012-02-25 01:46:26 PST ---
As far as I can see the detection, if a cmyk image is contains only gray
values, is wrong: if cyan, magenta and yellow have the same value it's not true
that we get a pure gray value, they must be 0! And if we do it in that way,
we'll get problems with overprint. Therefore it should be:

if (numComps == 4) {
  int compCyan;
  isGray = gTrue;
  while ((compCyan = str0->getChar()) != EOF) {
    if (compCyan != 0 && str0->getChar() != 0 ||
        str0->getChar() != 0) {
      isGray = gFalse;
      break;
    }
    str0->getChar();
  }
: : :

But probably we never will run in a situation where a CMYK image will contain
only values where C = M = Y

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list