Bug 701625 - "cups"/"pwgraster" output device: CMY output is messed up
Summary: "cups"/"pwgraster" output device: CMY output is messed up
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: CUPS driver (show other bugs)
Version: 9.27
Hardware: PC Linux
: P4 normal
Assignee: Michael Vrhel
URL:
Keywords:
: 702133 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-09-24 18:15 UTC by Till Kamppeter
Modified: 2020-02-17 19:01 UTC (History)
2 users (show)

See Also:
Customer:
Word Size: ---


Attachments
/usr/share/cups/data/form_russian.pdf (263.93 KB, application/pdf)
2019-09-24 18:15 UTC, Till Kamppeter
Details
CityMap.pdf (318.09 KB, application/pdf)
2019-09-24 18:17 UTC, Till Kamppeter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Till Kamppeter 2019-09-24 18:15:40 UTC
Created attachment 18166 [details]
/usr/share/cups/data/form_russian.pdf

The following command line converts a PDF input file into a CUPS Raster file with CMY color space (-dcupsColorSpace=4):

cat /usr/share/cups/data/form_russian.pdf | gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -dNOMEDIAATTRS -dShowAcroForm -sstdout=%stderr -sOutputFile=%stdout -sDEVICE=cups -sMediaClass=PwgRaster -sOutputType=Automatic -r600x600 -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -dcupsBitsPerColor=8 -dcupsColorOrder=0 -dcupsColorSpace=4 -dcupsBorderlessScalingFactor=0.0000 -dcupsInteger1=1 -dcupsInteger2=1 -scupsPageSizeName=na_letter_8.5x11in -I/usr/share/cups/fonts -c -f -_ > out.ras

If one displays the outcoming file with rasterview from

https://www.msweet.org/rasterview/

one gets messy output. Changing -dcupsColorSpace to any other color space (I tested Gray -> 0, RGB -> 1, CMYK -> 6, RGBW -> 17, SGray -> 18, SRGB -> 19, Adobe RGB -> 20) leads to correct output.

Using another input file (CityMap.pdf) one gets a correctly colored drawing of the map in CMY but the colors of the small photo on the page are wrong.
Comment 1 Till Kamppeter 2019-09-24 18:17:13 UTC
Created attachment 18167 [details]
CityMap.pdf
Comment 3 Till Kamppeter 2020-02-17 19:01:55 UTC
*** Bug 702133 has been marked as a duplicate of this bug. ***