From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Change color of EPS file.
Date: Thu, 13 Sep 2012 12:07:31 -0400 (EDT) [thread overview]
Message-ID: <alpine.LNX.2.02.1209131206470.12131@qrpragenyvmrq> (raw)
In-Reply-To: <BAY002-W932506788072C9283EC449B1910@phx.gbl>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 2173 bytes --]
On Thu, 13 Sep 2012, pol stra wrote:
>
>> Off-topic for this mailing list, but on-topic for you: You can do this
>> with Inkscape.
>>
>> * Install Inkscape: http://inkscape.org/download/?lang=en
>> * Open the EPS in Inkscape
>>
>> Working white-on-white sucks, so
>> * File > Document properties > click to the right of 'Background:',
>> below the Default units dropdown
>> * Choose something nice and pastel-coloured with alpha (opacity) set
>> to non-zero.
>>
>> * Select the object
>> * Object > Ungroup (Ctrl+Shift+G) to make Inkscape see the individual
>> paths, 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, set the fill to be red with click
>> and/or set the stroke to be red with Shift+click
>>
>> This will probably not have the desired effect because some of the
>> constituent paths will have black fill+transparent stroke, and with
>> others it will be the other way round. So you'll have to set
>> fill/stroke individually.
>>
>> * Select paths in turn, 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, it will be shown as
>> "mixed"; when multiple paths' fills/strokes are not mixed they are
>> identical, and you can change them all at once.
>>
>> (Depending on ... file-related things ... you may need to use Path >
>> Object to Path at some point, and possibly Path > Break Apart. But
>> probably not.)
>>
>> Good luck!
>>
>> --Sietse
>
> Thanks Sietse
>
> I already tried the inskape way, but it’s too much work if you have many files to proced.
> But your answer gave me the idea to use imegemagick, so I found this trick:
> convert -background none -density 300 -negate a1.EPS bbb.png
> I do not know why, but the 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.
If you want to use eps images, why not just use a white background at
ConTeXt end (as you had stated in your first message).
Aditya
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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-13 16:07 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2012-09-13 16:18 ` Sietse Brouwer
[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
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
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.1209131206470.12131@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).