Mobile app version of vmapp.org
Login or Join
Samaraweera207

: Inkscape in terminal: convert to greyscale What is the command for inkscape (called from the terminal) to convert graphics to greyscale? I was not able to find in in the manual. I use the

@Samaraweera207

Posted in: #ColorConversion #Inkscape

What is the command for inkscape (called from the terminal) to convert graphics to greyscale? I was not able to find in in the manual. I use the following command:

inkscape -f drawing1.pdf -A grawing2.pdf

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Samaraweera207

1 Comments

Sorted by latest first Latest Oldest Best

 

@Dunderdale640

Inkscape natively works with svgs. As far as I'm aware, even if you import a pdf it converts it to svg for editing. To avoid the popup window when importing a pdf you have to convert to svg. To do this install pdftosvg and run

pdf2svg inputfile.pdf outputfile.svg


To convert to greyscale in Inkscape you have to use Inkscape Verbs. This command worked for me:

inkscape -f inputfile.svg --verb EditSelectAll --verb org.inkscape.color.desaturate.noprefs --verb FileSave --verb FileQuit


A full list of Verbs can be found by running inkscape --verb-list

Unfortunately Inkscape doesn't have any command-line options aside from basic conversion from svg to png, so Verbs, which results in the window opening, is the only way to do it.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme