man-pages/man1/inkscape.1.html
2021-03-31 01:06:50 +01:00

1119 lines
36 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of INKSCAPE</TITLE>
</HEAD><BODY>
<H1>INKSCAPE</H1>
Section: Inkscape&nbsp;Commands&nbsp;Manual (1)<BR>Updated: 2020-05-26<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
Inkscape - an SVG (Scalable Vector Graphics) editing program.
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<TT>&quot;inkscape [options] [filename ...]&quot;</TT>
<P>
options:
<P>
<PRE>
-?, --help
--usage
-V, --version
-f, --file=FILENAME
-e, --export-png=FILENAME
-a, --export-area=x0:y0:x1:y1
-C, --export-area-page
-D, --export-area-drawing
--export-area-snap
--export-margin=VALUE
-i, --export-id=ID
-j, --export-id-only
-t, --export-use-hints
-b, --export-background=COLOR
-y, --export-background-opacity=VALUE
-d, --export-dpi=DPI
-w, --export-width=WIDTH
-h, --export-height=HEIGHT
-P, --export-ps=FILENAME
-E, --export-eps=FILENAME
-A, --export-pdf=FILENAME
--export-pdf-version=VERSION-STRING
--export-latex
--export-ps-level={2,3}
-T, --export-text-to-path
--export-ignore-filters
-l, --export-plain-svg=FILENAME
-m, --export-wmf=FILENAME
-M, --export-emf=FILENAME
-p, --print=PRINTER
-I, --query-id=ID
-X, --query-x
-Y, --query-y
-W, --query-width
-H, --query-height
-S, --query-all
-x, --extension-directory
--verb-list
--verb=VERB-ID
--select=OBJECT-ID
--shell
-g, --with-gui
-z, --without-gui
--vacuum-defs
--no-convert-text-baseline-spacing
--convert-dpi-method=METHOD
--g-fatal-warnings
</PRE>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<B>Inkscape</B> is a <FONT SIZE="-1">GUI</FONT> editor for <B>Scalable Vector Graphics (</B><FONT SIZE="-1"><B>SVG</B></FONT><B>)</B> format
drawing files, with capabilities similar to <B>Adobe Illustrator</B>,
<B>CorelDraw</B>, <B>Xara Xtreme</B>, etc. Inkscape features include versatile
shapes, bezier paths, freehand drawing, multi-line text, text on path,
alpha blending, arbitrary affine transforms, gradient and pattern fills,
node editing, many export and import formats including <FONT SIZE="-1">PNG</FONT> and <FONT SIZE="-1">PDF,</FONT>
grouping, layers, live clones, and a lot more. The interface is
designed to be comfortable and efficient for skilled users, while
remaining conformant to <B></B><FONT SIZE="-1"><B>GNOME</B></FONT><B></B> standards so that users familiar with
other <FONT SIZE="-1">GNOME</FONT> applications can learn its interface rapidly.
<P>
<B></B><FONT SIZE="-1"><B>SVG</B></FONT><B></B> is a W3C standard <FONT SIZE="-1">XML</FONT> format for 2D vector drawing. It allows
defining objects in the drawing using points, paths, and primitive
shapes. Colors, fonts, stroke width, and so forth are specified as
`style' attributes to these objects. The intent is that since <FONT SIZE="-1">SVG</FONT> is a
standard, and since its files are text/xml, it will be possible to use
<FONT SIZE="-1">SVG</FONT> files in a sizeable number of programs and for a wide range of uses.
<P>
<B>Inkscape</B> uses <FONT SIZE="-1">SVG</FONT> as its native document format, and has the goal of
becoming the most fully compliant drawing program for <FONT SIZE="-1">SVG</FONT> files
available in the Open Source community.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT id="1"><B>-?</B>, <B>--help</B><DD>
Show help message
<DT id="2"><B>-V</B>, <B>--version</B><DD>
Show Inkscape version and build date.
<DT id="3"><B>-a</B> <I>x0:y0:x1:y1</I>, <B>--export-area</B>=<I>x0:y0:x1:y1</I><DD>
In <FONT SIZE="-1">PNG</FONT> export, set the exported area in <FONT SIZE="-1">SVG</FONT> user units (anonymous length
units normally used in Inkscape <FONT SIZE="-1">SVG</FONT>). The default is to export the
entire document page. The point (0,0) is the lower-left corner.
<DT id="4"><B>-C</B>, <B>--export-area-page</B><DD>
In <FONT SIZE="-1">SVG, PNG, PDF, PS,</FONT> and <FONT SIZE="-1">EPS</FONT> export, exported area is the page. This is the
default for <FONT SIZE="-1">SVG, PNG, PDF,</FONT> and <FONT SIZE="-1">PS,</FONT> so you don't need to specify this unless
you are using --export-id to export a specific object. In <FONT SIZE="-1">EPS,</FONT> however,
this is not the default; moreover, for <FONT SIZE="-1">EPS,</FONT> the specification of the
format does not allow its bounding box to extend beyond its content.
This means that when --export-area-page is used with <FONT SIZE="-1">EPS</FONT> export, the
page bounding box will be trimmed inwards to the bounding box of the
content if it is smaller.
<DT id="5"><B>-D</B>, <B>--export-area-drawing</B><DD>
In <FONT SIZE="-1">SVG, PNG, PDF, PS,</FONT> and <FONT SIZE="-1">EPS</FONT> export, exported area is the drawing (not
page), i.e. the bounding box of all objects of the document (or of the
exported object if --export-id is used). With this option, the exported
image will display all the visible objects of the document without
margins or cropping. This is the default export area for <FONT SIZE="-1">EPS.</FONT> For <FONT SIZE="-1">PNG,</FONT>
it can be used in combination with --export-use-hints.
<DT id="6"><B>--export-area-snap</B><DD>
For <FONT SIZE="-1">PNG</FONT> export, snap the export area outwards to the nearest integer <FONT SIZE="-1">SVG</FONT>
user unit (px) values. If you are using the default export resolution of
96 dpi and your graphics are pixel-snapped to minimize antialiasing,
this switch allows you to preserve this alignment even if you are
exporting some object's bounding box (with --export-id
or --export-area-drawing) which is itself not pixel-aligned.
<DT id="7"><B>--export-margin</B>=<I></I><FONT SIZE="-1"><I>VALUE</I></FONT><I></I><DD>
Adds a margin around the exported area. The size of the margin is
specified in units of page size (for <FONT SIZE="-1">SVG</FONT>) or millimeters (for <FONT SIZE="-1">PS/EPS/PDF</FONT>).
The option currently has no effect for other export formats.
<DT id="8"><B>-b</B> <I></I><FONT SIZE="-1"><I>COLOR</I></FONT><I></I>, <B>--export-background</B>=<I></I><FONT SIZE="-1"><I>COLOR</I></FONT><I></I><DD>
Background color of exported <FONT SIZE="-1">PNG.</FONT> This may be any <FONT SIZE="-1">SVG</FONT> supported color
string, for example ``#ff007f'' or ``rgb(255, 0, 128)''. If not set, then
the page color set in Inkscape in the Document Options dialog will be
used (stored in the pagecolor= attribute of sodipodi:namedview).
<DT id="9"><B>-d</B> <I></I><FONT SIZE="-1"><I>DPI</I></FONT><I></I>, <B>--export-dpi</B>=<I></I><FONT SIZE="-1"><I>DPI</I></FONT><I></I><DD>
The resolution used for <FONT SIZE="-1">PNG</FONT> export. It is also used for fallback
rasterization of filtered objects when exporting to <FONT SIZE="-1">PS, EPS,</FONT> or <FONT SIZE="-1">PDF</FONT>
(unless you specify --export-ignore-filters to suppress
rasterization). The default is 96 dpi, which corresponds to 1 <FONT SIZE="-1">SVG</FONT> user
unit (px, also called ``user unit'') exporting to 1 bitmap pixel. This
value overrides the <FONT SIZE="-1">DPI</FONT> hint if used with --export-use-hints.
<DT id="10"><B>-e</B> <I></I><FONT SIZE="-1"><I>FILENAME</I></FONT><I></I>, <B>--export-png</B>=<I></I><FONT SIZE="-1"><I>FILENAME</I></FONT><I></I><DD>
Specify the filename for <FONT SIZE="-1">PNG</FONT> export. If it already exists, the file
will be overwritten without asking. Use `-' as filename to write the
image data to standard output.
<DT id="11"><B>-f</B> <I></I><FONT SIZE="-1"><I>FILENAME</I></FONT><I></I>, <B>--file</B>=<I></I><FONT SIZE="-1"><I>FILENAME</I></FONT><I></I><DD>
Open specified document(s). Option string may be omitted, i.e. you can
list the filenames without -f. Use `-' as filename to read the
vector data from standard input.
<DT id="12"><B>-g</B>, <B>--with-gui</B><DD>
Try to use the <FONT SIZE="-1">GUI</FONT> (on Unix, use the X server even if <TT>$DISPLAY</TT> is not
set).
<DT id="13"><B>-h</B> <I></I><FONT SIZE="-1"><I>HEIGHT</I></FONT><I></I>, <B>--export-height</B>=<I></I><FONT SIZE="-1"><I>HEIGHT</I></FONT><I></I><DD>
The height of generated bitmap in pixels. This value overrides the
--export-dpi setting (or the <FONT SIZE="-1">DPI</FONT> hint if used with --export-use-hints).
<DT id="14"><B>-i</B> <I></I><FONT SIZE="-1"><I>ID</I></FONT><I></I>, <B>--export-id</B>=<I></I><FONT SIZE="-1"><I>ID</I></FONT><I></I><DD>
For <FONT SIZE="-1">PNG, PS, EPS, PDF</FONT> and plain <FONT SIZE="-1">SVG</FONT> export, the id attribute value of
the object that you want to export from the document; all other objects
are not exported. By default the exported area is the bounding box of
the object; you can override this using --export-area (<FONT SIZE="-1">PNG</FONT> only)
or --export-area-page.
<DT id="15"><B>-j</B>, <B>--export-id-only</B><DD>
For <FONT SIZE="-1">PNG</FONT> and plain <FONT SIZE="-1">SVG,</FONT> only export the object whose id is given in
--export-id. All other objects are hidden and won't show in export
even if they overlay the exported object. Without --export-id, this
option is ignored. For <FONT SIZE="-1">PDF</FONT> export, this is the default, so this option
has no effect.
<DT id="16"><B>-l</B>, <B>--export-plain-svg</B>=<I></I><FONT SIZE="-1"><I>FILENAME</I></FONT><I></I><DD>
Export document(s) to plain <FONT SIZE="-1">SVG</FONT> format, without sodipodi: or inkscape:
namespaces and without <FONT SIZE="-1">RDF</FONT> metadata. Use `-' as filename to write the
image data to standard output.
<DT id="17"><B>-x</B>, <B>--extension-directory</B><DD>
Lists the current extension directory that Inkscape is configured to use
and then exits. This is used for external extension to use the same
configuration as the original Inkscape installation.
<DT id="18"><B>--verb-list</B><DD>
Lists all the verbs that are available in Inkscape by <FONT SIZE="-1">ID.</FONT> This <FONT SIZE="-1">ID</FONT> can
be used in defining keymaps or menus. It can also be used with
the --verb command line option.
<DT id="19"><B>--verb</B>=<I>VERB-ID</I>, <B>--select</B>=<I>OBJECT-ID</I><DD>
These two options work together to provide some basic scripting for
Inkscape from the command line. They both can occur as many times as
needed on the command line and are executed in order on every document
that is specified.
<P>
The --verb command will execute a specific verb as if it was called from
a menu or button. Dialogs will appear if that is part of the verb. To
get a list of the verb IDs available, use the --verb-list command line
option.
<P>
The --select command will cause objects that have the <FONT SIZE="-1">ID</FONT> specified to be
selected. This allows various verbs to act upon them. To remove all
the selections use <TT>&quot;--verb=EditDeselect&quot;</TT>. The object IDs available are
dependent on the document specified to load.
<P>
Note that the --verb command requires a <FONT SIZE="-1">GUI,</FONT> and thus cannot be used with
the --z option.
<DT id="20"><B>-p</B> <I></I><FONT SIZE="-1"><I>PRINTER</I></FONT><I></I>, <B>--print</B>=<I></I><FONT SIZE="-1"><I>PRINTER</I></FONT><I></I><DD>
Print document(s) to the specified printer using `lpr -P <FONT SIZE="-1">PRINTER</FONT>'.
Alternatively, use `| <FONT SIZE="-1">COMMAND</FONT>' to specify a different command to pipe
to, or use `&gt; <FONT SIZE="-1">FILENAME</FONT>' to write the PostScript output to a file instead
of printing. Remember to do appropriate quoting for your shell, e.g.
<P>
<PRE>
inkscape --print='| ps2pdf - mydoc.pdf' mydoc.svg
</PRE>
<DT id="21"><B>-t</B>, <B>--export-use-hints</B><DD>
Use export filename and <FONT SIZE="-1">DPI</FONT> hints stored in the exported object (only
with --export-id). These hints are set automatically when you export
selection from within Inkscape. So, for example, if you export a shape
with id=``path231'' as /home/me/shape.png at 300 dpi from document.svg
using Inkscape <FONT SIZE="-1">GUI,</FONT> and save the document, then later you will be able
to reexport that shape to the same file with the same resolution simply
with
<P>
<PRE>
inkscape -i path231 -t document.svg
</PRE>
<P>
If you use --export-dpi, --export-width, or --export-height
with this option, then the <FONT SIZE="-1">DPI</FONT> hint will be ignored and the value from
the command line will be used. If you use --export-png with this
option, then the filename hint will be ignored and the filename from the
command line will be used.
<DT id="22"><B>-w</B> <I></I><FONT SIZE="-1"><I>WIDTH</I></FONT><I></I>, <B>--export-width</B>=<I></I><FONT SIZE="-1"><I>WIDTH</I></FONT><I></I><DD>
The width of generated bitmap in pixels. This value overrides
the --export-dpi setting (or the <FONT SIZE="-1">DPI</FONT> hint if used
with --export-use-hints).
<DT id="23"><B>-y</B> <I></I><FONT SIZE="-1"><I>VALUE</I></FONT><I></I>, <B>--export-background-opacity</B>=<I></I><FONT SIZE="-1"><I>VALUE</I></FONT><I></I><DD>
Opacity of the background of exported <FONT SIZE="-1">PNG.</FONT> This may be a value either
between 0.0 and 1.0 (0.0 meaning full transparency, 1.0 full opacity) or
greater than 1 up to 255 (255 meaning full opacity). If not set and
the -b option is not used, then the page opacity set in Inkscape in the
Document Options dialog will be used (stored in the
inkscape:pageopacity= attribute of sodipodi:namedview). If not set but
the -b option is used, then the value of 255 (full opacity) will be
used.
<DT id="24"><B>-P</B> <I></I><FONT SIZE="-1"><I>FILENAME</I></FONT><I></I>, <B>--export-ps</B>=<I></I><FONT SIZE="-1"><I>FILENAME</I></FONT><I></I><DD>
Export document(s) to PostScript format. Note that PostScript does not
support transparency, so any transparent objects in the original <FONT SIZE="-1">SVG</FONT>
will be automatically rasterized. Used fonts are subset and
embedded. The default export area is page; you can set it to drawing by
--export-area-drawing. You can specify --export-id to export a
single object (all other are hidden); in that case export area is that
object's bounding box, but can be set to page by --export-area-page.
Use `-' as filename to write the image data to standard output.
<DT id="25"><B>-E</B> <I></I><FONT SIZE="-1"><I>FILENAME</I></FONT><I></I>, <B>--export-eps</B>=<I></I><FONT SIZE="-1"><I>FILENAME</I></FONT><I></I><DD>
Export document(s) to Encapsulated PostScript format. Note that
PostScript does not support transparency, so any transparent objects in
the original <FONT SIZE="-1">SVG</FONT> will be automatically rasterized. Used fonts are subset
and embedded. The default export area is drawing; you can set it to
page, however see --export-area-page for applicable limitation. You
can specify --export-id to export a single object (all other are
hidden). Use `-' as filename to write the image data to standard output.
<DT id="26"><B>-A</B> <I></I><FONT SIZE="-1"><I>FILENAME</I></FONT><I></I>, <B>--export-pdf</B>=<I></I><FONT SIZE="-1"><I>FILENAME</I></FONT><I></I><DD>
Export document(s) to <FONT SIZE="-1">PDF</FONT> format. This format preserves the transparency
in the original <FONT SIZE="-1">SVG.</FONT> Used fonts are subset and embedded. The default
export area is page; you can set it to drawing by
--export-area-drawing. You can specify --export-id to export a
single object (all other are hidden); in that case export area is that
object's bounding box, but can be set to page by --export-area-page.
Use `-' as filename to write the image data to standard output.
<DT id="27"><B>--export-pdf-version</B>=<I>PDF-VERSION</I><DD>
Select the <FONT SIZE="-1">PDF</FONT> version of the exported <FONT SIZE="-1">PDF</FONT> file. This option basically
exposes the <FONT SIZE="-1">PDF</FONT> version selector found in the PDF-export dialog of the
<FONT SIZE="-1">GUI.</FONT> You must provide one of the versions from that combo-box,
e.g. ``1.4''. The default pdf export version is ``1.4''.
<DT id="28"><B>--export-latex</B><DD>
(for <FONT SIZE="-1">PS, EPS,</FONT> and <FONT SIZE="-1">PDF</FONT> export) Used for creating images for LaTeX
documents, where the image's text is typeset by LaTeX. When exporting
to <FONT SIZE="-1">PDF/PS/EPS</FONT> format, this option splits the output into a <FONT SIZE="-1">PDF/PS/EPS</FONT>
file (e.g. as specified by --export-pdf) and a LaTeX file. Text will not
be output in the <FONT SIZE="-1">PDF/PS/EPS</FONT> file, but instead will appear in the LaTeX
file. This LaTeX file includes the <FONT SIZE="-1">PDF/PS/EPS.</FONT> Inputting
(\input{image.tex}) the LaTeX file in your LaTeX document will show the
image and all text will be typeset by LaTeX. See the resulting LaTeX
file for more information. Also see GNUPlot's `epslatex' output
terminal.
<DT id="29"><B>-T</B>, <B>--export-text-to-path</B><DD>
Convert text objects to paths on export, where applicable (for <FONT SIZE="-1">PS, EPS,
PDF</FONT> and <FONT SIZE="-1">SVG</FONT> export).
<DT id="30"><B>--export-ignore-filters</B><DD>
Export filtered objects (e.g. those with blur) as vectors, ignoring the
filters (for <FONT SIZE="-1">PS, EPS,</FONT> and <FONT SIZE="-1">PDF</FONT> export). By default, all filtered objects
are rasterized at --export-dpi (default 96 dpi), preserving the
appearance.
<DT id="31"><B>-m</B> <I></I><FONT SIZE="-1"><I>FILENAME</I></FONT><I></I>, <B>--export-wmf</B>=<I></I><FONT SIZE="-1"><I>FILENAME</I></FONT><I></I><DD>
Export document(s) to Windows Metafile (<FONT SIZE="-1">WMF</FONT>) format.
<DT id="32"><B>-M</B> <I></I><FONT SIZE="-1"><I>FILENAME</I></FONT><I></I>, <B>--export-emf</B>=<I></I><FONT SIZE="-1"><I>FILENAME</I></FONT><I></I><DD>
Export document(s) to Windows Enhanced Metafile (<FONT SIZE="-1">EMF</FONT>) format.
<DT id="33"><B>-I</B>, <B>--query-id</B><DD>
Set the <FONT SIZE="-1">ID</FONT> of the object whose dimensions are queried. If not set, query
options will return the dimensions of the drawing (i.e. all document
objects), not the page or viewbox
<DT id="34"><B>-X</B>, <B>--query-x</B><DD>
Query the X coordinate of the drawing or, if specified, of the object
with --query-id. The returned value is in px (<FONT SIZE="-1">SVG</FONT> user units).
<DT id="35"><B>-Y</B>, <B>--query-y</B><DD>
Query the Y coordinate of the drawing or, if specified, of the object
with --query-id. The returned value is in px (<FONT SIZE="-1">SVG</FONT> user units).
<DT id="36"><B>-W</B>, <B>--query-width</B><DD>
Query the width of the drawing or, if specified, of the object with
--query-id. The returned value is in px (<FONT SIZE="-1">SVG</FONT> user units).
<DT id="37"><B>-H</B>, <B>--query-height</B><DD>
Query the height of the drawing or, if specified, of the object
with --query-id. The returned value is in px (<FONT SIZE="-1">SVG</FONT> user units).
<DT id="38"><B>-S</B>, <B>--query-all</B><DD>
Prints a comma delimited listing of all objects in the <FONT SIZE="-1">SVG</FONT> document with
IDs defined, along with their x, y, width, and height values.
<DT id="39"><B>--shell</B><DD>
With this parameter, Inkscape will enter an interactive command line
shell mode. In this mode, you type in commands at the prompt and
Inkscape executes them, without you having to run a new copy of Inkscape
for each command. This feature is mostly useful for scripting and server
uses: it adds no new capabilities but allows you to improve the speed
and memory requirements of any script that repeatedly calls Inkscape to
perform command line tasks (such as export or conversions). Each command
in shell mode must be a complete valid Inkscape command line but without
the Inkscape program name, for example:
<P>
<PRE>
file.svg --export-pdf=file.pdf
</PRE>
<DT id="40"><B>--vacuum-defs</B><DD>
Remove all unused items from the <TT>&quot;&lt;defs&gt;&quot;</TT> section of the <FONT SIZE="-1">SVG</FONT> file.
If this option is invoked in conjunction with --export-plain-svg,
only the exported file will be affected. If it is used alone, the
specified file will be modified in place.
<DT id="41"><B>--no-convert-text-baseline-spacing</B><DD>
Do not automatically fix text baselines in legacy (pre-0.92) files on
opening. Inkscape 0.92 adopts the <FONT SIZE="-1">CSS</FONT> standard definition for the
'line-height' property, which differs from past versions. By default,
the line height values in files created prior to Inkscape 0.92 will be
adjusted on loading to preserve the intended text layout. This command
line option will skip that adjustment.
<DT id="42"><B>--convert-dpi-method</B>=<I></I><FONT SIZE="-1"><I>METHOD</I></FONT><I></I><DD>
Choose method used to rescale legacy (pre-0.92) files which render
slightly smaller due to the switch from 90 <FONT SIZE="-1">DPI</FONT> to 96 <FONT SIZE="-1">DPI</FONT> when interpreting
lengths expressed in units of pixels. Possible values are ``none'' (no
change, document will render at 94% of its original size), ``scale-viewbox''
(document will be rescaled globally, individual lengths will stay
untouched) and ``scale-document'' (each length will be re-scaled
individually).
<DT id="43"><B>-z</B>, <B>--without-gui</B><DD>
Do not open the <FONT SIZE="-1">GUI</FONT> (on Unix, do not use X server); only process the
files from console. This is assumed for -p, -e, -l, and --vacuum-defs
options. It cannot be used in conjunction with the --verb option.
<DT id="44"><B>--g-fatal-warnings</B><DD>
This standard <FONT SIZE="-1">GTK</FONT> option forces any warnings, usually harmless, to cause
Inkscape to abort (useful for debugging).
<DT id="45"><B>--usage</B><DD>
Display a brief usage message.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>CONFIGURATION</H2>
The main configuration file is located in
~/.config/inkscape/preferences.xml; it stores a variety of customization
settings that you can change in Inkscape (mostly in the Inkscape
Preferences dialog). Also in the subdirectories there, you can place
your own:
<P>
<B></B>$HOME<B></B>/.config/inkscape/extensions/ - extension effects.
<P>
<B></B>$HOME<B></B>/.config/inkscape/icons/ - icons.
<P>
<B></B>$HOME<B></B>/.config/inkscape/keys/ - keyboard maps.
<P>
<B></B>$HOME<B></B>/.config/inkscape/templates/ - new file templates.
<A NAME="lbAG">&nbsp;</A>
<H2>DIAGNOSTICS</H2>
The program returns zero on success or non-zero on failure.
<P>
A variety of error messages and warnings may be printed to <FONT SIZE="-1">STDERR</FONT> or
<FONT SIZE="-1">STDOUT.</FONT> If the program behaves erratically with a particular <FONT SIZE="-1">SVG</FONT> file
or crashes, it is useful to look at this output for clues.
<A NAME="lbAH">&nbsp;</A>
<H2>EXAMPLES</H2>
While obviously <B>Inkscape</B> is primarily intended as a <FONT SIZE="-1">GUI</FONT> application,
it can be used for doing <FONT SIZE="-1">SVG</FONT> processing on the command line as well.
<P>
Open an <FONT SIZE="-1">SVG</FONT> file in the <FONT SIZE="-1">GUI:</FONT>
<P>
<PRE>
inkscape filename.svg
</PRE>
<P>
Print an <FONT SIZE="-1">SVG</FONT> file from the command line:
<P>
<PRE>
inkscape filename.svg -p '| lpr'
</PRE>
<P>
Export an <FONT SIZE="-1">SVG</FONT> file into <FONT SIZE="-1">PNG</FONT> with the default resolution of 96 dpi (one
<FONT SIZE="-1">SVG</FONT> user unit translates to one bitmap pixel):
<P>
<PRE>
inkscape filename.svg --export-png=filename.png
</PRE>
<P>
Same, but force the <FONT SIZE="-1">PNG</FONT> file to be 600x400 pixels:
<P>
<PRE>
inkscape filename.svg --export-png=filename.png -w600 -h400
</PRE>
<P>
Same, but export the drawing (bounding box of all objects), not the
page:
<P>
<PRE>
inkscape filename.svg --export-png=filename.png --export-area-drawing
</PRE>
<P>
Export to <FONT SIZE="-1">PNG</FONT> the object with id=``text1555'', using the output filename
and the resolution that were used for that object last time when it was
exported from the <FONT SIZE="-1">GUI:</FONT>
<P>
<PRE>
inkscape filename.svg --export-id=text1555 --export-use-hints
</PRE>
<P>
Same, but use the default 96 dpi resolution, specify the filename, and
snap the exported area outwards to the nearest whole <FONT SIZE="-1">SVG</FONT> user unit
values (to preserve pixel-alignment of objects and thus minimize
aliasing):
<P>
<PRE>
inkscape filename.svg --export-id=text1555 --export-png=text.png --export-area-snap
</PRE>
<P>
Convert an Inkscape <FONT SIZE="-1">SVG</FONT> document to plain <FONT SIZE="-1">SVG:</FONT>
<P>
<PRE>
inkscape filename1.svg --export-plain-svg=filename2.svg
</PRE>
<P>
Convert an <FONT SIZE="-1">SVG</FONT> document to <FONT SIZE="-1">EPS,</FONT> converting all texts to paths:
<P>
<PRE>
inkscape filename.svg --export-eps=filename.eps --export-text-to-path
</PRE>
<P>
Query the width of the object with id=``text1555'':
<P>
<PRE>
inkscape filename.svg --query-width --query-id text1555
</PRE>
<P>
Duplicate the object with id=``path1555'', rotate the duplicate 90
degrees, save <FONT SIZE="-1">SVG,</FONT> and quit:
<P>
<PRE>
inkscape filename.svg --select=path1555 --verb=EditDuplicate --verb=ObjectRotate90 --verb=FileSave --verb=FileClose
</PRE>
<A NAME="lbAI">&nbsp;</A>
<H2>ENVIRONMENT</H2>
<B></B><FONT SIZE="-1"><B>DISPLAY</B></FONT><B></B> to get the default host and display number.
<P>
<B></B><FONT SIZE="-1"><B>TMPDIR</B></FONT><B></B> to set the default path of the directory to use for temporary
files. The directory must exist.
<P>
<B></B><FONT SIZE="-1"><B>INKSCAPE_PROFILE_DIR</B></FONT><B></B> to set the path of the directory to use for the
user profile.
<A NAME="lbAJ">&nbsp;</A>
<H2>THEMES</H2>
To load different icons sets instead of the default
<B></B>$PREFIX<B></B>/share/inkscape/icons/icons.svg file, the directory
<B></B>$HOME<B></B>/.config/inkscape/icons/ is used. Icons are loaded by name
(e.g. <I>fill_none.svg</I>), or if not found, then from <I>icons.svg</I>. If
the icon is not loaded from either of those locations, it falls back to
the default system location.
<P>
The needed icons are loaded from <FONT SIZE="-1">SVG</FONT> files by searching for the <FONT SIZE="-1">SVG</FONT> id
with the matching icon name. (For example, to load the ``fill_none'' icon
from a file, the bounding box seen for <FONT SIZE="-1">SVG</FONT> id ``fill_none'' is rendered as
the icon, whether it comes from <I>fill_none.svg</I> or <I>icons.svg</I>.)
<A NAME="lbAK">&nbsp;</A>
<H2>OTHER INFO</H2>
The canonical place to find <B>Inkscape</B> info is at
&lt;<A HREF="https://www.inkscape.org/">https://www.inkscape.org/</A>&gt;. The website has news, documentation,
tutorials, examples, mailing list archives, the latest released version
of the program, bugs and feature requests databases, forums, and more.
<A NAME="lbAL">&nbsp;</A>
<H2>SEE ALSO</H2>
potrace, cairo, rsvg, batik, ghostscript, pstoedit.
<P>
<FONT SIZE="-1">SVG</FONT> compliance test suite:
&lt;<A HREF="https://www.w3.org/Graphics/SVG/WG/wiki/Test_Suite_Overview">https://www.w3.org/Graphics/SVG/WG/wiki/Test_Suite_Overview</A>&gt;
<P>
<FONT SIZE="-1">SVG</FONT> validator:
&lt;<A HREF="https://validator.w3.org/">https://validator.w3.org/</A>&gt;
<P>
<I>Scalable Vector Graphics (</I><FONT SIZE="-1"><I>SVG</I></FONT><I>) 1.1 Specification</I>
<I>W3C Recommendation 16 August 2011</I>
&lt;<A HREF="https://www.w3.org/TR/SVG11/">https://www.w3.org/TR/SVG11/</A>&gt;
<P>
<I>Scalable Vector Graphics (</I><FONT SIZE="-1"><I>SVG</I></FONT><I>) 1.2 Specification</I>
<I>W3C Working Draft 13 April 2005</I>
&lt;<A HREF="https://www.w3.org/TR/SVG12/">https://www.w3.org/TR/SVG12/</A>&gt;
<P>
<I>Scalable Vector Graphics (</I><FONT SIZE="-1"><I>SVG</I></FONT><I>) 2 Specification</I>
<I>W3C Candidate Recommendation 15 September 2016</I>
&lt;<A HREF="https://www.w3.org/TR/SVG2/">https://www.w3.org/TR/SVG2/</A>&gt;
<P>
<I>Document Object Model (</I><FONT SIZE="-1"><I>DOM</I></FONT><I>): Level 2 Core</I>
<I>W3C Recommendation 13 November 2000</I>
&lt;<A HREF="https://www.w3.org/TR/DOM-Level-2-Core/">https://www.w3.org/TR/DOM-Level-2-Core/</A>&gt;
<A NAME="lbAM">&nbsp;</A>
<H2>GUI NOTES</H2>
To learn Inkscape's <FONT SIZE="-1">GUI</FONT> operation, read the tutorials in Help &gt; Tutorials.
<P>
Apart from <FONT SIZE="-1">SVG,</FONT> Inkscape can import (File &gt; Import) most bitmap formats
(<FONT SIZE="-1">PNG, BMP, JPG, XPM, GIF,</FONT> etc.), plain text (requires Perl), <FONT SIZE="-1">PS</FONT> and <FONT SIZE="-1">EPS</FONT>
(requires Ghostscript), <FONT SIZE="-1">PDF</FONT> and <FONT SIZE="-1">AI</FONT> format (<FONT SIZE="-1">AI</FONT> version 9.0 or newer).
<P>
Inkscape exports 32-bit <FONT SIZE="-1">PNG</FONT> images (File &gt; Export <FONT SIZE="-1">PNG</FONT> Image) as well as
<FONT SIZE="-1">AI, PS, EPS, PDF, DXF,</FONT> and several other formats via File &gt; Save as.
<P>
Inkscape can use the pressure and tilt of a graphic tablet pen for
width, angle, and force of action of several tools, including the
Calligraphic pen.
<P>
Inkscape includes a <FONT SIZE="-1">GUI</FONT> front-end to the Potrace bitmap tracing engine
(&lt;<A HREF="http://potrace.sf.net">http://potrace.sf.net</A>&gt;) which is embedded into Inkscape.
<P>
Inkscape can use external scripts (stdin-to-stdout filters) that are
represented by commands in the Extensions menu. A script can have a <FONT SIZE="-1">GUI</FONT>
dialog for setting various parameters and can get the IDs of the
selected objects on which to act via the command line. Inkscape comes
with an assortment of effects written in Python.
<A NAME="lbAN">&nbsp;</A>
<H2>KEYBINDINGS</H2>
To get a complete list of keyboard and mouse shortcuts, view
doc/keys.html, or use the Keys and Mouse command in Help menu.
<A NAME="lbAO">&nbsp;</A>
<H2>BUGS</H2>
Many bugs are known; please refer to the website
(&lt;<A HREF="https://www.inkscape.org/">https://www.inkscape.org/</A>&gt;) for reviewing the reported ones and to
report newly found issues. See also the Known Issues section in the
Release Notes for your version (file `<FONT SIZE="-1">NEWS</FONT>').
<A NAME="lbAP">&nbsp;</A>
<H2>AUTHORS</H2>
This codebase owes its existence to a large number of contributors
throughout its various incarnations. The following list is certainly
incomplete, but serves to recognize the many shoulders on which this
application sits:
<P>
Maximilian Albert,
Joshua A. Andler,
Tavmjong Bah,
Pierre Barbry-Blot,
Jean-François Barraud,
Campbell Barton,
Bill Baxter,
John Beard,
John Bintz,
Arpad Biro,
Nicholas Bishop,
Joshua L. Blocher,
Hanno Böck,
Tomasz Boczkowski,
Henrik Bohre,
Boldewyn,
Daniel Borgmann,
Bastien Bouclet,
Hans Breuer,
Gustav Broberg,
Christopher Brown,
Marcus Brubaker,
Luca Bruno,
Brynn (<A HREF="mailto:brynn@inkscapecommunity.com">brynn@inkscapecommunity.com</A>),
Nicu Buculei,
Bulia Byak,
Pierre Caclin,
Ian Caldwell,
Gail Carmichael,
Ed Catmur,
Chema Celorio,
Jabiertxo Arraiza Cenoz,
Johan Ceuppens,
Zbigniew Chyla,
Alexander Clausen,
John Cliff,
Kees Cook,
Ben Cromwell,
Robert Crosbie,
Jon Cruz,
Aurélie De-Cooman,
Kris De Gussem,
Milosz Derezynski,
Daniel Díaz,
Bruno Dilly,
Larry Doolittle,
Nicolas Dufour,
Tim Dwyer,
Maxim V. Dziumanenko,
Johan Engelen,
Miklos Erdelyi,
Ulf Erikson,
Noé Falzon,
Frank Felfe,
Andrew Fitzsimon,
Edward Flick,
Marcin Floryan,
Fred,
Ben Fowler,
Cedric Gemy,
Steren Giannini,
Olivier Gondouin,
Ted Gould,
Toine de Greef,
Michael Grosberg,
Bryce Harrington,
Dale Harvey,
Aurélio Adnauer Heckert,
Carl Hetherington,
Jos Hirth,
Hannes Hochreiner,
Thomas Holder,
Joel Holdsworth,
Christoffer Holmstedt,
Alan Horkan,
Karl Ove Hufthammer,
Richard Hughes,
Nathan Hurst,
inductiveload,
Thomas Ingham,
Jean-Olivier Irisson,
Bob Jamison,
Ted Janeczko,
Marc Jeanmougin,
jEsuSdA,
Lauris Kaplinski,
Lynn Kerby,
Niko Kiirala,
James Kilfiger,
Nikita Kitaev,
Jason Kivlighn,
Adrian Knoth,
Krzysztof Kosiński,
Petr Kovar,
Benoît Lavorata,
Alex Leone,
Julien Leray,
Raph Levien,
Diederik van Lierop,
Nicklas Lindgren,
Vitaly Lipatov,
Ivan Louette,
Fernando Lucchesi Bastos Jurema,
Pierre-Antoine Marc,
Aurel-Aimé Marmion,
Colin Marquardt,
Craig Marshall,
Ivan Masár,
Dmitry G. Mastrukov,
David Mathog,
Matiphas,
Patrick McDermott,
Michael Meeks,
Federico Mena,
MenTaLguY,
Aubanel Monnier,
Vincent Montagne,
Tim Mooney,
Derek P. Moore,
Chris Morgan,
Peter Moulder,
Jörg Müller,
Yukihiro Nakai,
Victor Navez,
Christian Neumair,
Nick,
Andreas Nilsson,
Mitsuru Oka,
Vinícius dos Santos Oliveira,
Martin Owens,
Alvin Penner,
Matthew Petroff,
Jon Phillips,
Zdenko Podobny,
Alexandre Prokoudine,
Jean-René Reinhard,
Alexey Remizov,
Frederic Rodrigo,
Hugo Rodrigues,
Juarez Rudsatz,
Xavier Conde Rueda,
Felipe Corrêa da Silva Sanches,
Christian Schaller,
Marco Scholten,
Tom von Schwerdtner,
Danilo Šegan,
Abhishek Sharma,
Shivaken,
Michael Sloan,
John Smith,
Boštjan Špetič,
Aaron Spike,
Kaushik Sridharan,
Ralf Stephan,
Dariusz Stojek,
Martin Sucha,
~suv,
Pat Suwalski,
Adib Taraben,
Hugh Tebby,
Jonas Termeau,
David Turner,
Andre Twupack,
Aleksandar Urošević,
Alex Valavanis,
Joakim Verona,
Lucas Vieites,
Daniel Wagenaar,
Liam P. White,
Sebastian Wüst,
Michael Wybrow,
Gellule Xg,
Daniel Yacob,
David Yip,
Masatake Yamato,
Moritz Eberl,
Sebastian Faubel
<P>
This man page was put together by Bryce Harrington
&lt;<A HREF="mailto:bryce@bryceharrington.org">bryce@bryceharrington.org</A>&gt;.
<A NAME="lbAQ">&nbsp;</A>
<H2>HISTORY</H2>
The codebase that would become Inkscape began life in 1999 as the
program Gill, the <FONT SIZE="-1">GNOME</FONT> Illustrator application, created by Raph Levien.
The stated objective for Gill was to eventually support all of <FONT SIZE="-1">SVG.</FONT>
Raph implemented the PostScript bezier imaging model, including stroking
and filling, line cap style, line join style, text, etc. Raph's Gill
page is at &lt;<A HREF="http://www.levien.com/svg/">http://www.levien.com/svg/</A>&gt;. Work on Gill appears to have
slowed or ceased in 2000.
<P>
The next incarnation of the codebase was to become the highly popular
program Sodipodi, led by Lauris Kaplinski. The codebase was turned into
a powerful illustration program over the course of several year's work,
adding several new features, multi-lingual support, porting to Windows
and other operating systems, and eliminating dependencies.
<P>
Inkscape was formed in 2003 by four active Sodipodi developers, Bryce
Harrington, MenTaLguY, Nathan Hurst, and Ted Gould, wanting to take a
different direction with the codebase in terms of focus on <FONT SIZE="-1">SVG</FONT>
compliance, interface look-and-feel, and a desire to open development
opportunities to more participants. The project progressed rapidly,
gaining a number of very active contributors and features.
<P>
Much work in the early days of the project focused on code stabilization
and internationalization. The original renderer inherited from Sodipodi
was laced with a number of mathematical corner cases which led to
unexpected crashes when the program was pushed beyond routine uses; this
renderer was replaced with Livarot which, while not perfect either, was
significantly less error prone. The project also adopted a practice of
committing code frequently, and encouraging users to run developmental
snapshots of the program; this helped identify new bugs swiftly, and
ensure it was easy for users to verify the fixes. As a result, Inkscape
releases have generally earned a reputation for being robust and
reliable.
<P>
Similarly, efforts were taken to internationalize and localize the
interface, which has helped the program gain contributors worldwide.
<P>
Inkscape has had a beneficial impact on the visual attractiveness of
Open Source in general, by providing a tool for creating and sharing
icons, splash screens, website art, and so on. In a way, despite being
``just an drawing program'', Inkscape has played an important role in
making Open Source more visually stimulating to larger audiences.
<A NAME="lbAR">&nbsp;</A>
<H2>COPYRIGHT AND LICENSE</H2>
<B>Copyright (C)</B> 1999-2019 by Authors.
<P>
<B>Inkscape</B> is free software; you can redistribute it and/or modify it
under the terms of the <FONT SIZE="-1">GPL</FONT> version 2 or later.
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="46"><A HREF="#lbAB">NAME</A><DD>
<DT id="47"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="48"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="49"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="50"><A HREF="#lbAF">CONFIGURATION</A><DD>
<DT id="51"><A HREF="#lbAG">DIAGNOSTICS</A><DD>
<DT id="52"><A HREF="#lbAH">EXAMPLES</A><DD>
<DT id="53"><A HREF="#lbAI">ENVIRONMENT</A><DD>
<DT id="54"><A HREF="#lbAJ">THEMES</A><DD>
<DT id="55"><A HREF="#lbAK">OTHER INFO</A><DD>
<DT id="56"><A HREF="#lbAL">SEE ALSO</A><DD>
<DT id="57"><A HREF="#lbAM">GUI NOTES</A><DD>
<DT id="58"><A HREF="#lbAN">KEYBINDINGS</A><DD>
<DT id="59"><A HREF="#lbAO">BUGS</A><DD>
<DT id="60"><A HREF="#lbAP">AUTHORS</A><DD>
<DT id="61"><A HREF="#lbAQ">HISTORY</A><DD>
<DT id="62"><A HREF="#lbAR">COPYRIGHT AND LICENSE</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:17 GMT, March 31, 2021
</BODY>
</HTML>