[Poppler-bugs] [Bug 37688] pdftops -level2sep writes RGB color

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun May 29 20:39:10 PDT 2011


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

--- Comment #4 from William Bader <williambader at hotmail.com> 2011-05-29 20:39:10 PDT ---
Created an attachment (id=47292)
 View: https://bugs.freedesktop.org/attachment.cgi?id=47292
 Review: https://bugs.freedesktop.org/review?bug=37688&attachment=47292

proposed patch against 0.17.1

I have attached a patch for 0.17.1.
-level2sep and -level3sep now generate gray or cmyk instead of rgb.
They request splashModeCMYK8 from SplashOutputDev() the same as -level1sep
instead of requesting splashModeRGB8 like -level2 and -level3.
In addition, -level2sep and -level3sep scan the bitmap, and if the C, M and Y
components match in every pixel, they write a gray image instead of a cmyk
image.
This should make color images separate better and fix the problem where gray
images in -level2sep and -level3sep output write to the c, m and y plates
instead of to the black plate.
I plan on testing it in the workflow on Monday.

Here are sizes from converting my test file with different options.
  3305716 May 29 23:32 elp-B83378-gray-level1.ps
 13201974 May 29 23:32 elp-B83378-gray-level1sep.ps
   232460 May 29 23:32 elp-B83378-gray-level2.ps
   188460 May 29 23:32 elp-B83378-gray-level2sep.ps
   151154 May 29 23:32 elp-B83378-gray-level2sepbinary.ps

-- 
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