Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6546017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:39:25+00:00 2026-05-25T11:39:25+00:00

I would like to automatize the inkscape command simplify path. Concretely, I would like

  • 0

I would like to automatize the inkscape command “simplify path”. Concretely, I would like a command line tool which takes a svg-file as input, applies “simplify path” to all paths in the figure and saves a new (smaller) svg-file. Is this possible using inkscape? Is there a free command line tool (I’m using linux) which does the job?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:39:26+00:00Added an answer on May 25, 2026 at 11:39 am

    UPDATE (2023-06-07):

    Again the command line changed in v1.2. Now it should be something like (untested!):

    inkscape backpacks-svgrepo-com.svg --batch-process --actions='select-all;path-simplify;export-plain-svg'
    

    You can get a list of all list of all actions by running:

    inkscape --action-list
    

    and chose those fitting to your needs. Saving is a bit more tricky as it’s not listed in the actions. The manual says something like:

    In addition, there are actions matching all export options (to use them, simply remove the prefix ‘–‘ in front of the option and replace ‘=’ with ‘:’)


    UPDATE (2021):

    Since the question/answer is quite old the inkscape command line changed.

    inkscape file.svg --batch-process --actions='EditSelectAll;SelectionSimplify;FileSave;FileClose'
    

    Also see comment of Oren Ben-Kiki or Pix answer.

    ORIG:

    Should be possible:

    http://tavmjong.free.fr/INKSCAPE/MANUAL/html/CommandLine.html

    shows how to call functions of inkscape (called "verbs") from the command line. To get a list of all verbs call inkscape --verb-list on commandline. What you are looking for is SelectionSimplify.

    Therefore you have to write a small script that is filtering every id out of the svg and is calling inkscape with the ids. Something like this (optimize all pathes and quit from inkscape at the end)

    inkscape filename.svg --verb=EditSelectAll --verb=SelectionSimplify --verb=FileSave --verb=FileClose --verb=FileQuit
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a command-line process I would like to automate and capture in C#.
I would like to automate the elements based on input file expression. My input
I would like to automate the following svn command. Note this command produces the
We would like to prepare a quiz which will improve the vocabulary of the
Me again... I have an XML File that contains different categories which I would
Is there a tool that would allow me to to do something like this:
We have a servlet that we post a zip file to. I would like
I would like to automate the creation of symbolic links on my laptops from
I would like to automate SchemaSpy as part of a nightly build against a
I would like to be able to automate data entry to an Open Office

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.