[gs-bugs] [Bug 691737] New: Customer would like to be able to force colors to black

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Thu Oct 28 18:15:08 UTC 2010


http://bugs.ghostscript.com/show_bug.cgi?id=691737

           Summary: Customer would like to be able to force colors to
                    black
           Product: Ghostscript
           Version: 9.00
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P4
         Component: Color
        AssignedTo: michael.vrhel at artifex.com
        ReportedBy: marcos.woehrmann at artifex.com
         QAContact: gs-bugs at ghostscript.com
   Estimated Hours: 0.0


The customer would like to map colors to solid black when using the tiffpack
device.

With Ghostscript 8.71 and older the following PostScript code would accomplish
this (from an old email from Ray):

%--------------------------------------------------------------------------
% Force all colors to go through CRD transformations
<< /UseCIEColor true >> setpagedevice

currentcolorrendering dup length dict copy      % make a writeable copy

% Set the MatrixABC to combine RGB together with equal weighting grayscale
dup /MatrixABC [ 1 3 div dup dup 3 copy 3 copy ] put

% Set EncodeABC to make any shade greater than the threshold be all white
% any value less than the threshold is black.
dup /EncodeABC [ { .99 ge { 1 } { 0 } ifelse } bind dup dup ] put

setcolorrendering
%--------------------------------------------------------------------------

but this does not work with 9.00

-- 
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the gs-bugs mailing list