All of lore.kernel.org
 help / color / mirror / Atom feed
From: Till Kamppeter <till.kamppeter@gmail.com>
To: Joseph Simon <jsimon383@gmail.com>,
	Open Printing <printing-architecture@lists.linux-foundation.org>
Subject: Re: [Printing-architecture] "no-color-management" not a good idea for a name of a boolean CUPS option
Date: Sun, 15 Jun 2014 11:10:37 +0200	[thread overview]
Message-ID: <539D630D.9070500@gmail.com> (raw)
In-Reply-To: <CAERbVPTFyySZZScc_Yycs+tdg2mD4K-7vEOC8rsgdkigz5CCKA@mail.gmail.com>

On 06/13/2014 01:52 AM, Joseph Simon wrote:
> 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

I have looked into foomatic-rip and it seems that the "cm-calibration"
option only works when using foomatic-rip in direc/spooler-less mode. To
make it also working in CUPS mode you will probably also have to check
it in the first loop in the process_cmdline_options() function.

In imagetoraster you are not only renamimg the option and the variable
but also dropping "else cm_off = 0;" With this probably you need to
preset the variable to zero at declaration ("int cm_calibrate = 0;").

Rest seems to be OK.

Please check these points, as I only reviewed your commit but did not
actually test it.

It would be also nice if you add to all filters with the
"cm-calibration" option a line which generates debug log output telling
whether "cm-calibration" was set or not, like

fprintf(stderr, "DEBUG: Color Management: %s\n", cm_calibrate ?
"Calibration mode/deactivated" : "Standard mode/activated");

   Till




  reply	other threads:[~2014-06-15  9:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-12 10:13 [Printing-architecture] "no-color-management" not a good idea for a name of a boolean CUPS option Till Kamppeter
2014-06-12 12:17 ` Michael Sweet
2014-06-12 17:06 ` Chris Murphy
2014-06-12 18:15 ` Joseph Simon
2014-06-12 21:22   ` Till Kamppeter
2014-06-12 23:52     ` Joseph Simon
2014-06-15  9:10       ` Till Kamppeter [this message]
2014-06-15 12:56         ` Joseph Simon
2014-06-15 14:59           ` Till Kamppeter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=539D630D.9070500@gmail.com \
    --to=till.kamppeter@gmail.com \
    --cc=jsimon383@gmail.com \
    --cc=printing-architecture@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.