Inkscape.org
Beyond the Basics Export svg to webp command line
  1. #1
    regs regs @regs
    *

    I'm trying to export svg top webp. It's working via GUI, but command line throwing messagebox error - Unspecified fatal error encountered, aborting.

    inkscape --export-type=webp --export-area-page --export-width=72 --export-height=72 --export-filename="icon.webp" "icon.svg"

     

    Am I missing some additional options? And how can i set webp quality to lossless? Or is is using lossless by default?

    Inkscape 1.2.2

     

     

  2. #2
    inklinea inklinea @inklinea⛰️

    In windows 10 and ubuntu 22+.

    I am not able to export to formats which use PIL via the command line.

    Generally you would use:

    inkscape --actions="export-filename.aaa;export-do" drawing.svg

    where aaa is the extension for the file format you want.

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Export svg to webp command line