From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78295 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Change color of EPS file. Date: Fri, 14 Sep 2012 18:48:09 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1347662793 460 80.91.229.3 (14 Sep 2012 22:46:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2012 22:46:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 15 00:46:37 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TCeej-0007eB-1D for gctc-ntg-context-518@m.gmane.org; Sat, 15 Sep 2012 00:46:37 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A4287101F6; Sat, 15 Sep 2012 00:46:32 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id zjMGsUiua7oo; Sat, 15 Sep 2012 00:46:30 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 7E919101F8; Sat, 15 Sep 2012 00:46:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 36677101F8 for ; Sat, 15 Sep 2012 00:46:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 5-TLUTtOrczf for ; Sat, 15 Sep 2012 00:46:27 +0200 (CEST) Original-Received: from filter2-utr.mf.surf.net (filter2-utr.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id ABFB8101F6 for ; Sat, 15 Sep 2012 00:46:27 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter2-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q8EMkOrY029309 for ; Sat, 15 Sep 2012 00:46:25 +0200 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By hackers.mr.itd.umich.edu ID 5053B3BE.DC730.28794 ; Authuser adityam; 14 Sep 2012 18:46:22 EDT In-Reply-To: User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04HXaKotN - 58c60bfd0bb1 - 20120915 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:78295 Archived-At: 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 ___________________________________________________________________________________