ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <hraban@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Change color of EPS file.
Date: Sun, 16 Sep 2012 10:03:23 +0200	[thread overview]
Message-ID: <CAPm68ZiXeKmDJt2dzA03ycSmZPEEJM+z2PXXD+feea+r-VTZ4Q@mail.gmail.com> (raw)
In-Reply-To: <CAFP+xFL2VZg2N=9og4Q7p7uXVPCZ_8b+ynggtcjPwR9=EMxKxA@mail.gmail.com>

2012/9/15 Troy Henderson <thenders@gmail.com>:
> Utilities are available in abundance which can transform raster graphics
> from color to grayscale, but until I created this yesterday, I have never
> seen a utility that keeps the graphic in vector format (i.e., never
> rasterizes it throughout the conversion) and converts it from color to
> grayscale.  Until I read this thread, I guess I thought I was the only one
> that desired such a tool.  I'm glad to see that at least I'm not alone.

Oh, there are, but I know only commercial (e.g. OneVision Asura) or
in-house solutions (like what I "managed" at a newspaper several years
ago).
The simple (or simplistic) rgbcolor patch doesn't work with
complicated EPS, of course. But then you'd need to know the structure
of your EPS. It's hard to get that right for arbitrary EPS. And there
aren't that many able PostScript programmers left.
E.g. at that newspaper we were able to switch spot colors just before
plate exposition; the trick was to use a generic spot color name
throughout the workflow and to change its definition in the completed
page EPS. (At that time "our" printing press was too small to print
all pages in full color.)

Since PostScript is a full programming language, most PS generators
use shortcuts (macros/functions) that wrap the originally simple
commands, so you often can't track down where the structure hides that
you'd like to change. Best solution is often to do a full "expansion"
with a PS interpreter and write a new, better readable, but mostly
much bigger code. pstoedit is your friend for that – e.g. Hans did
some nice tricks with EPS pictures converted to MetaPost.

I once experimented a bit with changing colors of embedded bitmap
images – it's rather easy to do, but never looks right without a deep
understanding of color management and its strange implementation in
PostScript...

Greetlings, Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2012-09-16  8:03 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.62.1347553130.2084.ntg-context@ntg.nl>
2012-09-14 14:22 ` pol stra
2012-09-14 14:34   ` Troy Henderson
2012-09-14 22:29     ` Troy Henderson
2012-09-14 22:48       ` Aditya Mahajan
2012-09-14 23:23         ` Troy Henderson
2012-09-15  5:36           ` luigi scarso
2012-09-15 12:22             ` Rogers, Michael K
2012-09-15 13:24               ` Troy Henderson
2012-09-16  8:03                 ` Henning Hraban Ramm [this message]
2012-09-12 17:10 pol stra
2012-09-13 11:09 ` Hans Hagen
2012-09-13 11:45   ` Sietse Brouwer
2012-09-13 14:24     ` pol stra
2012-09-13 16:07       ` Aditya Mahajan
2012-09-13 16:18         ` Sietse Brouwer

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=CAPm68ZiXeKmDJt2dzA03ycSmZPEEJM+z2PXXD+feea+r-VTZ4Q@mail.gmail.com \
    --to=hraban@fiee.net \
    --cc=ntg-context@ntg.nl \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).