From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Change color of EPS file.
Date: Fri, 14 Sep 2012 18:48:09 -0400 (EDT) [thread overview]
Message-ID: <alpine.LNX.2.02.1209141837240.4289@qrpragenyvmrq> (raw)
In-Reply-To: <CAFP+xF+X48CwDedgWGzw1E3osEUPTWDXF7xVVMeDtBW7a+aXuA@mail.gmail.com>
On Fri, 14 Sep 2012, Troy Henderson wrote:
> I put together this little utility for converting a color EPS/PDF/SVG to
> grayscale.
>
> http://www.tlhiv.org/grayscale/
>
> Selecting "invert" swaps colors from white to black and black to white.
> So, using a black/white graphic on a transparent background should
> transform it to a white/black graphic on a transparent background.
>
> Testing is certainly necessary.
Interesting. At some stage I might revive the webfilter branch of the
filler module so that such services can be accessed from within ConTeXt.
See the following post for details:
http://randomdeterminism.wordpress.com/2010/08/12/using-filters-outside-the-box/
In case anyone is interested, this blog post was talking about code
available at
https://raw.github.com/adityam/filter/web/t-filter.tex
https://raw.github.com/adityam/filter/web/t-filter.lua
At some stage I decided to delete these features from the filter module
and move it to a separate module. The code is available at
https://github.com/adityam/context-webfilter
but I haven't used it for about 2 years, and given all the changes in the
internal namespace, I doubt it will run without modifications.
Nonetheless, the idea is that a user can use such services using:
\definewebfilter[grayscaleimage]
[prefix={http://www.tlhiv.org/grayscale},
method=POST,
... some other options ....
]
and then use
\grayscaleimage{local-image.eps}
This will call the web-service and cache the result.
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2012-09-14 22:48 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 [this message]
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
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=alpine.LNX.2.02.1209141837240.4289@qrpragenyvmrq \
--to=adityam@umich.edu \
--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).