change colour using command line

Post questions on how to use or achieve an effect in Inkscape.
srikrishnan
Posts: 2
Joined: Wed Sep 23, 2009 4:41 pm

change colour using command line

Postby srikrishnan » Wed Sep 23, 2009 4:47 pm

Hi All,

I am trying to create SVG for some characters for e.g. Aacute, Bacute, etc.

It creates successfully, but in the resulted svg file characters are not appearing in full black, it appears in gray color. So I want to change the color using Inkscape command line, I have tried something like below but it wont works (I hope, I dont know the exact syntax for selecting black color from color swatches bar from the bottom of the tool window)

inkscape.exe %1.svg --verb=FitCanvasToSelectionOrDrawing --verb=ToolSelector --verb=EditSelectAll --verb=DialogSwatches:black --verb=FileSave --verb=FileClose

But when I try manually using the Inkscape GUI tool as per the below method:

1. open SVG file
2. select and transform objects (F1)
3. Fill: black using Color bar at the bottom of the tool

this converts grey color to black successfully. I want to achieve this through command-line

If anybody help us to solve this problem, it would be very much appreciated.

Thanks in Advance,
Srikrishnan
Last edited by srikrishnan on Fri Sep 25, 2009 5:33 pm, edited 1 time in total.

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: change colour using command line

Postby prkos » Thu Sep 24, 2009 1:20 am

I'm not sure if I fully understand your problem but can't you just use a text editor to replace the gray color string with the black one? Lot's of text editors have find and replace function ;)
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

srikrishnan
Posts: 2
Joined: Wed Sep 23, 2009 4:41 pm

Re: change colour using command line

Postby srikrishnan » Thu Sep 24, 2009 9:50 am

Hi,

I need to change the color through command-line. I am using the command-line option in my batch file

Thanks,
Srikrishnan


Return to “Help with using Inkscape”