From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78296 Path: news.gmane.org!not-for-mail From: Troy Henderson Newsgroups: gmane.comp.tex.context Subject: Re: Change color of EPS file. Date: Fri, 14 Sep 2012 18:23:52 -0500 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0272854583==" X-Trace: ger.gmane.org 1347665046 16850 80.91.229.3 (14 Sep 2012 23:24:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2012 23:24:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 15 01:24:08 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 1TCfF0-000325-L8 for gctc-ntg-context-518@m.gmane.org; Sat, 15 Sep 2012 01:24:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 667E310203; Sat, 15 Sep 2012 01:24:01 +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 3utvcg3Okv8e; Sat, 15 Sep 2012 01:23:58 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 34EDA101F8; Sat, 15 Sep 2012 01:23:58 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3B154101F8 for ; Sat, 15 Sep 2012 01:23:56 +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 u+BZaD23cgpz for ; Sat, 15 Sep 2012 01:23:54 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 9A2BD101F6 for ; Sat, 15 Sep 2012 01:23:54 +0200 (CEST) Original-Received: from mail-iy0-f169.google.com (mail-iy0-f169.google.com [209.85.210.169]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q8ENLvgJ005386 for ; Sat, 15 Sep 2012 01:21:58 +0200 Original-Received: by iagk10 with SMTP id k10so4861435iag.14 for ; Fri, 14 Sep 2012 16:23:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=VaC42Pb34C51itr+Ckw3tLbjauzriXJ0M/J09We7ARM=; b=LlJebmuf3cNQAlh9rts0nPsTlfHCFfS4bTqr03vB556Khbn/PbouXBP/1yneYc6UAB NtY/f5Exi5oHkx4+ixZkJ3YhnqgVT/qotJkFa06V6agzlq/7wPcnWTU+RMoSrYAlg/oD cVtiQh6gWsdbNIfbUelcQ3oBCMyYQ49TIHkuKJMrL+EEzqxpZVo26S7s7/ejv/MSSp0Y 8kIEYCeMKP7trgPv40LNADF66UG8hzOLuni6GbXZO9Mrgx+K8fHI6QvLQlEiSEeHf7sO 3Slfb5Iqm5D4UTN2HcXdz1cnEPr7pd03zz+mnVJE51QPPIYbX4eXvMd25K67p+xwcfhK CPzQ== Original-Received: by 10.50.94.130 with SMTP id dc2mr206361igb.22.1347665032287; Fri, 14 Sep 2012 16:23:52 -0700 (PDT) Original-Received: by 10.64.27.161 with HTTP; Fri, 14 Sep 2012 16:23:52 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.210.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WHXblVI4 - 75e40cc5498e - 20120915 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:78296 Archived-At: --===============0272854583== Content-Type: multipart/alternative; boundary=e89a8f234cd586968b04c9b1b7b3 --e89a8f234cd586968b04c9b1b7b3 Content-Type: text/plain; charset=ISO-8859-1 For those that care, here is basically how the service works. The filter is applied to an SVG, and the uploaded graphic is converted to SVG using the following process: EPS -> PDF -> SVG PDF -> SVG SVG -> PDF -> SVG where the EPS -> PDF conversion is done with the standard `epstopdf` included with TeX. The PDF -> SVG conversion is done with `pdf2svg` which is available from http://www.cityinthesky.co.uk/opensource/pdf2svg and which uses Cairo and Poppler for its conversion. Now in order for my simplistic filter to function, all SVG's must essentially "look alike" (i.e., come from the same source). Therefore, uploaded SVG's are converted to PDF (using Inkscape) and then back to SVG (using `pdf2svg`). The filter then works with the resulting SVG and converts it back to the uploaded format using Inkscape. Troy --e89a8f234cd586968b04c9b1b7b3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable For those that care, here is basically how the service works.=A0 The filter= is applied to an SVG, and the uploaded graphic is converted to SVG using t= he following process:

EPS -> PDF -> SVG
PDF -> SVG
SV= G -> PDF -> SVG

where the EPS -> PDF conversion is done with the standard `epstopdf`= included with TeX.=A0 The PDF -> SVG conversion is done with `pdf2svg` = which is available from

http://www.cityinthesky.co.uk/opensource/pdf2svg

and which uses Cairo and Poppler for its conversion.=A0 Now in order fo= r my simplistic filter to function, all SVG's must essentially "lo= ok alike" (i.e., come from the same source).=A0 Therefore, uploaded SV= G's are converted to PDF (using Inkscape) and then back to SVG (using `= pdf2svg`).=A0 The filter then works with the resulting SVG and converts it = back to the uploaded format using Inkscape.

Troy
--e89a8f234cd586968b04c9b1b7b3-- --===============0272854583== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0272854583==--