From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78269 Path: news.gmane.org!not-for-mail From: pol stra Newsgroups: gmane.comp.tex.context Subject: Re: Change color of EPS file. Date: Thu, 13 Sep 2012 16:24:01 +0200 Message-ID: References: <5051BED5.2050809@wxs.nl>, Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1004214480==" X-Trace: ger.gmane.org 1347546267 20440 80.91.229.3 (13 Sep 2012 14:24:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Sep 2012 14:24:27 +0000 (UTC) To: Sietse Brouwer , conteXt mail Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 13 16:24:30 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 1TCALD-0006qj-R9 for gctc-ntg-context-518@m.gmane.org; Thu, 13 Sep 2012 16:24:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A233210250; Thu, 13 Sep 2012 16:24:23 +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 HuHbdTT26ndM; Thu, 13 Sep 2012 16:24:20 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 2D27B101EF; Thu, 13 Sep 2012 16:24:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D4906101EF for ; Thu, 13 Sep 2012 16:24:18 +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 X7hW2ySqL8fO for ; Thu, 13 Sep 2012 16:24:17 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 14FF5101E7 for ; Thu, 13 Sep 2012 16:24:17 +0200 (CEST) Original-Received: from bay0-omc2-s25.bay0.hotmail.com (bay0-omc2-s25.bay0.hotmail.com [65.54.190.100]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q8DEO63S007421 for ; Thu, 13 Sep 2012 16:24:14 +0200 Original-Received: from BAY002-W93 ([65.54.190.124]) by bay0-omc2-s25.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 13 Sep 2012 07:24:02 -0700 X-Originating-IP: [193.49.32.254] Importance: Normal In-Reply-To: X-OriginalArrivalTime: 13 Sep 2012 14:24:02.0405 (UTC) FILETIME=[6C36B950:01CD91BB] X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=65.54.190.100; country=US; region=WA; city=Redmond; postalcode=98052; latitude=47.6801; longitude=-122.1206; metrocode=819; areacode=425; http://maps.google.com/maps?q=47.6801,-122.1206&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03HWCo6WF - 93f56dcfde20 - 20120913 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:78269 Archived-At: --===============1004214480== Content-Type: multipart/alternative; boundary="_05e232a1-8a04-4fd5-882a-34c1e41b78c8_" --_05e232a1-8a04-4fd5-882a-34c1e41b78c8_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable > From: sbbrouwer@gmail.com > Date: Thu=2C 13 Sep 2012 13:45:20 +0200 > Subject: Re: [NTG-context] Change color of EPS file. > To: ntg-context@ntg.nl > CC: ryzz@hotmail.fr >=20 > Hello Pol stra=2C >=20 > Off-topic for this mailing list=2C but on-topic for you: You can do this > with Inkscape. >=20 > * Install Inkscape: http://inkscape.org/download/?lang=3Den > * Open the EPS in Inkscape >=20 > Working white-on-white sucks=2C so > * File > Document properties > click to the right of 'Background:'=2C > below the Default units dropdown > * Choose something nice and pastel-coloured with alpha (opacity) set > to non-zero. >=20 > * Select the object > * Object > Ungroup (Ctrl+Shift+G) to make Inkscape see the individual > paths=2C instead of a single EPS object > The single rectangle selecting the object has now turned into a heap > of rectangles. > * With the colours at the bottom=2C set the fill to be red with click > and/or set the stroke to be red with Shift+click >=20 > This will probably not have the desired effect because some of the > constituent paths will have black fill+transparent stroke=2C and with > others it will be the other way round. So you'll have to set > fill/stroke individually. >=20 > * Select paths in turn=2C and set their fill/stroke as appropriate. > Their respective values are shown in the bottom left. If you select > multiple paths and their fill/stroke is different=2C it will be shown as > "mixed"=3B when multiple paths' fills/strokes are not mixed they are > identical=2C and you can change them all at once. >=20 > (Depending on ... file-related things ... you may need to use Path > > Object to Path at some point=2C and possibly Path > Break Apart. But > probably not.) >=20 > Good luck! >=20 > --Sietse Thanks Sietse I already tried the inskape way=2C but it=92s too much work if you have man= y files to proced. But your answer gave me the idea to use imegemagick=2C so I found this tric= k: convert -background none -density 300 -negate a1.EPS bbb.png I do not know why=2C but the same command with an EPS output gives me a whi= te background so I had use a png file. The result is good enough for me. Thanks again = --_05e232a1-8a04-4fd5-882a-34c1e41b78c8_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

>=3B From: sbbrouwer@= gmail.com
>=3B Date: Thu=2C 13 Sep 2012 13:45:20 +0200
>=3B Subje= ct: Re: [NTG-context] Change color of EPS file.
>=3B To: ntg-context@n= tg.nl
>=3B CC: ryzz@hotmail.fr
>=3B
>=3B Hello Pol stra=2C<= br>>=3B
>=3B Off-topic for this mailing list=2C but on-topic for yo= u: You can do this
>=3B with Inkscape.
>=3B
>=3B * Install = Inkscape: http://inkscape.org/download/?lang=3Den
>=3B * Open the EPS = in Inkscape
>=3B
>=3B Working white-on-white sucks=2C so
>= =3B * File >=3B Document properties >=3B click to the right of 'Backgro= und:'=2C
>=3B below the Default units dropdown
>=3B * Choose some= thing nice and pastel-coloured with alpha (opacity) set
>=3B to non-ze= ro.
>=3B
>=3B * Select the object
>=3B * Object >=3B Ungr= oup (Ctrl+Shift+G) to make Inkscape see the individual
>=3B paths=2C i= nstead of a single EPS object
>=3B The single rectangle selecting the = object has now turned into a heap
>=3B of rectangles.
>=3B * With= the colours at the bottom=2C set the fill to be red with click
>=3B a= nd/or set the stroke to be red with Shift+click
>=3B
>=3B This w= ill probably not have the desired effect because some of the
>=3B cons= tituent paths will have black fill+transparent stroke=2C and with
>=3B= others it will be the other way round. So you'll have to set
>=3B fil= l/stroke individually.
>=3B
>=3B * Select paths in turn=2C and s= et their fill/stroke as appropriate.
>=3B Their respective values are = shown in the bottom left. If you select
>=3B multiple paths and their = fill/stroke is different=2C it will be shown as
>=3B "mixed"=3B when m= ultiple paths' fills/strokes are not mixed they are
>=3B identical=2C = and you can change them all at once.
>=3B
>=3B (Depending on ...= file-related things ... you may need to use Path >=3B
>=3B Object t= o Path at some point=2C and possibly Path >=3B Break Apart. But
>=3B= probably not.)
>=3B
>=3B Good luck!
>=3B
>=3B --Siet= se

Thanks Sietse

I already tried the inskape way=2C but it=92= s too much work if you have many files to proced.
But your answer gave m= e the idea to use imegemagick=2C so I found this trick:
convert -backgro= und none -density 300 -negate a1.EPS bbb.png
I do not know why=2C but th= e same command with an EPS output gives me a white background so I had use = a png file.
The result is good enough for me.
Thanks again
=
= --_05e232a1-8a04-4fd5-882a-34c1e41b78c8_-- --===============1004214480== 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 ___________________________________________________________________________________ --===============1004214480==--