Controling bit-depth of gs output

Tomasz Koprowski klapek at kki.net.pl
Tue Apr 1 01:10:59 PDT 2008


Thank you for your answer.

> I suspect that gs 8.61 does not pass the cupsBitsPerColor to the
> "cups" driver.  File a bug with the Ghostscript folks.

This could explain why it fails with GPL GS for the user. But my additional question is: is there any way to launch (a known working) ESP GS "by hand" so that it generates 24-bpp instead of 1-bpp.

I tried the following:
-----------------------------8<---------------------------------------
export PPD=/etc/cups/ppd/Samsung_SPP-2020_USB_1.ppd
export LOGLEVEL=2
gs  -dQUIET -dNOPAUSE -dBATCH -sDEVICE=cups -sOUTPUTFILE=tiger.cprs /usr/share/ghostscript/8.15/examples/tiger.eps
-----------------------------8<---------------------------------------


But it generates 1-bpp:
-----------------------------8<---------------------------------------
DEBUG2: cups_get_params(0x85dcea4, 0xbfffe450)
DEBUG2: before gdev_prn_get_params()
DEBUG2: after gdev_prn_get_params()
DEBUG2: Leaving cups_get_params()
DEBUG2: cups_put_params(0x85dcea4, 0xbfffe450)
DEBUG2: cups_set_color_info(0x85dcea4)
DEBUG: cupsEncodeLUT[0] = 0
DEBUG: cupsEncodeLUT[65535] = 1
DEBUG: num_components = 1, depth = 1
DEBUG: cupsColorSpace = 3, cupsColorOrder = 0
DEBUG: cupsBitsPerPixel = 1, cupsBitsPerColor = 1
DEBUG: max_gray = 1, dither_grays = 2
DEBUG: max_color = 0, dither_colors = 0
DEBUG2: ppd = (nil)
DEBUG2: PageSize = [ 612.000 792.000 ]
DEBUG2: margins = [ 0.000 0.000 -1.999 0.000 ]
DEBUG2: HWResolution = [ 100.000 100.000 ]
DEBUG2: width = 850, height = 1100
-----------------------------8<---------------------------------------

Is there some more "magic" that cups does to feed settings to gs?

Cheers,
Tomek




More information about the cups mailing list