Skip to contentSkip to conversation

CUPS and color management

Printing-architecture Pascal Obry 3 participants 8 messages Jul 7, 2014 – Jul 9, 2014

lore
Share & tools
lore
#0 lore raw

Hello,

I have a question regarding color management with CUPS. I need to print a raster image (jpeg, tiff) which has already been converted with the printer profile. The printing is done using the CUPS API (cupsPrintFile). I want to ensure that NO color management is done by CUPS or any filters.

Is there something to do? If so What do I need to do?

Thanks,

Signature · 8 lines
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://v2p.fr.eu.org
  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B
#1 lore raw

Hi Pascal,

Copying Mike Sweet (CUPS author) for the answer to you question.

Cheers,
- Ira

Ira McDonald (Musician / Software Architect) Co-Chair - TCG Trusted Mobility Solutions WG Chair - Linux Foundation Open Printing WG Secretary - IEEE-ISTO Printer Working Group Co-Chair - IEEE-ISTO PWG Internet Printing Protocol WG IETF Designated Expert - IPP & Printer MIB
Blue Roof Music / High North Inc
http://sites.google.com/site/blueroofmusic
http://sites.google.com/site/highnorthinc
mailto: [email protected]
Winter 579 Park Place Saline, MI 48176 734-944-0094 Summer PO Box 221 Grand Marais, MI 49839 906-494-2434

Quoted 28 lines · Pascal Obry

Hello,

I have a question regarding color management with CUPS. I need to print a raster image (jpeg, tiff) which has already been converted with the printer profile. The printing is done using the CUPS API (cupsPrintFile). I want to ensure that NO color management is done by CUPS or any filters.

Is there something to do? If so What do I need to do?

Thanks,

--
Pascal Obry / Magny Les Hameaux (78)

The best way to travel is by means of imagination

http://v2p.fr.eu.org
http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B

_______________________________________________
Printing-architecture mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/printing-architecture

#2 lore raw

Ira,

I'm on this list too, and I sent Pascal here because I don't know the answer... :/ There was discussion of adding an option for this just recently, but I just don't know what the final option name is...

Quoted 45 lines · Ira McDonald

Hi Pascal,

Copying Mike Sweet (CUPS author) for the answer to you question.

Cheers,
- Ira

Ira McDonald (Musician / Software Architect) Co-Chair - TCG Trusted Mobility Solutions WG Chair - Linux Foundation Open Printing WG Secretary - IEEE-ISTO Printer Working Group Co-Chair - IEEE-ISTO PWG Internet Printing Protocol WG IETF Designated Expert - IPP & Printer MIB
Blue Roof Music / High North Inc
http://sites.google.com/site/blueroofmusic
http://sites.google.com/site/highnorthinc
mailto: [email protected]
Winter 579 Park Place Saline, MI 48176 734-944-0094 Summer PO Box 221 Grand Marais, MI 49839 906-494-2434

On Mon, Jul 7, 2014 at 11:47 AM, Pascal Obry <[email protected]> wrote:

Hello,

I have a question regarding color management with CUPS. I need to print a raster image (jpeg, tiff) which has already been converted with the printer profile. The printing is done using the CUPS API (cupsPrintFile). I want to ensure that NO color management is done by CUPS or any filters.

Is there something to do? If so What do I need to do?

Thanks,

--
Pascal Obry / Magny Les Hameaux (78)

The best way to travel is by means of imagination

http://v2p.fr.eu.org
http://www.obry.net

Quoted 7 lines
  gpg --keyserver keys.gnupg.net --recv-key F949BD3B

_______________________________________________
Printing-architecture mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/printing-architecture

_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair

#3 lore raw

Hi Pascal and Mike,

[Thanks Mike for the pointer - I think I've tracked down the answer]

The result of the recent Open Printing thread on "no color management" was this note sent by Joe Simon on 12 June:

Hi everyone,

Rev. 7225 of 'cups-filters' now replaces "no-color-management" with "cm-calibration" for the bool option. So the following commands should work without the added '=' symbol, and will disable ICC profile management:

$ rastertopdf 1 foo bar 1 "cm-calibration" input.ras >>output.pdf
$ foomatic-rip -p foo -o cm-calibration

Joe Simon

Cheers,
- Ira

Quoted 68 lines · Michael Sweet

Ira,

I'm on this list too, and I sent Pascal here because I don't know the answer... :/ There was discussion of adding an option for this just recently, but I just don't know what the final option name is...

On Jul 8, 2014, at 11:12 AM, Ira McDonald <[email protected]> wrote:

Hi Pascal,

Copying Mike Sweet (CUPS author) for the answer to you question.

Cheers,
- Ira

Ira McDonald (Musician / Software Architect) Co-Chair - TCG Trusted Mobility Solutions WG Chair - Linux Foundation Open Printing WG Secretary - IEEE-ISTO Printer Working Group Co-Chair - IEEE-ISTO PWG Internet Printing Protocol WG IETF Designated Expert - IPP & Printer MIB
Blue Roof Music / High North Inc
http://sites.google.com/site/blueroofmusic
http://sites.google.com/site/highnorthinc
mailto: [email protected]
Winter 579 Park Place Saline, MI 48176 734-944-0094 Summer PO Box 221 Grand Marais, MI 49839 906-494-2434

Quoted 21 lines · Pascal Obry

Hello,

I have a question regarding color management with CUPS. I need to print a raster image (jpeg, tiff) which has already been converted with the printer profile. The printing is done using the CUPS API (cupsPrintFile). I want to ensure that NO color management is done by CUPS or any filters.

Is there something to do? If so What do I need to do?

Thanks,

--
Pascal Obry / Magny Les Hameaux (78)

The best way to travel is by means of imagination

http://v2p.fr.eu.org
http://www.obry.net

Quoted 7 lines
  gpg --keyserver keys.gnupg.net --recv-key F949BD3B

_______________________________________________
Printing-architecture mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/printing-architecture

_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair

#4 lore raw

Hi Ira,

Quoted 6 lines

Rev. 7225 of 'cups-filters' now replaces "no-color-management" with "cm-calibration" for the bool option. So the following commands should work without the added '=' symbol, and will disable ICC profile management:

Quoted 6 lines
$ rastertopdf 1 foo bar 1 "cm-calibration" input.ras >>output.pdf
$ foomatic-rip -p foo -o cm-calibration

Joe Simon

Hum... I'm new to CUPS :) So how does that translate in terms of CUPS API?

Is the cm-calibration just a regular option?

So, should I just do:

num_options = cupsAddOption("cm-calibration",

                              "false",
                              num_options, &options);

And pass num_optionss & options to cupsPrintFile()?

Cheers,
Pascal.

Signature · 8 lines
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://v2p.fr.eu.org
  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B
#5 lore raw

Hi Joe,

Can you answer Pascal's question below, please?

Cheers,
- Ira

Quoted 41 lines · Pascal Obry

Hi Ira,

Quoted 6 lines

Rev. 7225 of 'cups-filters' now replaces "no-color-management" with "cm-calibration" for the bool option. So the following commands should work without the added '=' symbol, and will disable ICC profile management:

Quoted 6 lines
$ rastertopdf 1 foo bar 1 "cm-calibration" input.ras >>output.pdf
$ foomatic-rip -p foo -o cm-calibration

Joe Simon

Hum... I'm new to CUPS :) So how does that translate in terms of CUPS API?

Is the cm-calibration just a regular option?

So, should I just do:

num_options = cupsAddOption("cm-calibration",

                              "false",
                              num_options, &options);

And pass num_optionss & options to cupsPrintFile()?

Cheers,
Pascal.
--
Pascal Obry / Magny Les Hameaux (78)

The best way to travel is by means of imagination

http://v2p.fr.eu.org
http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B
#6 lore raw
In reply to Pascal Obry

Pascal,

Quoted 2 lines · Pascal Obry

...
Is the cm-calibration just a regular option?

Yes; at the IPP level it is a boolean attribute.

Quoted 5 lines

So, should I just do:

num_options = cupsAddOption("cm-calibration",

                             "false",
                             num_options, &options);

Use "true" for the value (otherwise the filter will see "nocm-calibration"...)

Quoted 1 line

And pass num_optionss & options to cupsPrintFile()?

Yes.

_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair

#7 lore raw

Michael,

Quoted 6 lines · Pascal Obry
Quoted 2 lines

...
Is the cm-calibration just a regular option?

Yes; at the IPP level it is a boolean attribute.

Quoted 7 lines
Quoted 5 lines

So, should I just do:

num_options = cupsAddOption("cm-calibration",

                             "false",
                             num_options, &options);

Use "true" for the value (otherwise the filter will see "nocm-calibration"...)

Makes sense indeed! Thanks a lot to all for the quick help.

Cheers,

Signature · 8 lines
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://v2p.fr.eu.org
  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B