Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raster.c: Use sRGB if driver is pwg/urf and has ColorModel option #51

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

zdohnal
Copy link
Member

@zdohnal zdohnal commented Mar 4, 2024

Some driverless printers (EPSON L3160 in Fedora report) stopped working after commit c6175a2 if ColorModel=RGB is passed as option. A different CUPS color space is assigned with the fix - CUPS_CSPACE_RGB, which results in no ICC profile being assigned into Ghostscript command line.

Probably we can try other .icc profiles with CUPS_CSPACE_RGB (srgb.icc does not work with RGB color space), but I tested with reporter that using sRGB space + srgb.icc works for the printer - so the patch is to use sRGB if the driver is URF/PWG.

Some driverless printers (EPSON L3160 in Fedora report) stopped working
after commit c6175a2 if `ColorModel=RGB` is passed as option. A
different CUPS color space is assigned with the fix - CUPS_CSPACE_RGB,
which results in no ICC profile being assigned into Ghostscript command
line.

Probably we can try other .icc profiles with CUPS_CSPACE_RGB (srgb.icc
does not work with RGB color space), but I tested with reporter that
using sRGB space + srgb.icc works for the printer - so the patch is to
use sRGB if the driver is URF/PWG.
@zdohnal
Copy link
Member Author

zdohnal commented Mar 4, 2024

Fedora issue

@zdohnal zdohnal requested a review from tillkamppeter March 6, 2024 14:29
@zdohnal zdohnal requested a review from tillkamppeter March 7, 2024 12:24
@tillkamppeter tillkamppeter merged commit 78cc675 into OpenPrinting:master Mar 7, 2024
@tillkamppeter
Copy link
Member

@zdohnal thanks for the fix. I have applied it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants