[cups.development] filter: grayscale or color

Michael Sweet mike at easysw.com
Sun Nov 19 04:58:15 PST 2006


Jan Engelhardt wrote:
> On Nov 18 2006 08:22, Michael Sweet wrote:
>> Jan Engelhardt wrote:
>>> is there a way for a filter to find out whether the end result that is 
>>> going to be sent to the backend will be grayscale or color?
>>> ...
>> The Adobe ColorModel option and ColorDevice attribute can be used,
>> however Foomatic drivers don't follow the standard and use other
>> other option names.
> 
> I am sure they follow, at least the one I randomly picked,
> 2500c-pcl3.ppd.gz:
> 
>   *FoomaticRIPOptionSetting ColorMode=CMY: " -sColorModel=CMY"
>   *FoomaticRIPOptionSetting ColorMode=CMY+K: " -sColorModel=CMY+K"
>   *FoomaticRIPOptionSetting ColorMode=CMYK: " -sColorModel=CMYK"
>   *FoomaticRIPOptionSetting ColorMode=Gray: " -sColorModel=Gray"
>   ...
>   *DefaultColorMode: Gray

That isn't following the Adobe spec.  The option name is "ColorMode"
instead of the standard "ColorModel", the FoomaticRIPOptionSetting
is only used by Foomatic to map PPD options to Ghostscript options.

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Publishing Software        http://www.easysw.com




More information about the cups mailing list