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
___________________________________________________________________________________

Reply via email to