man > svgtopam(1)

TLDR: svgtopam (tldr-pages)

Convert an SVG file to Netpbm format.

  • Convert an SVG file to Netpbm format
    svgtopam {{path/to/file.svg}} > {{path/to/output.pam}}
  • Emit textual output describing the input image
    svgtopam {{-t|-trace}} {{path/to/file.svg}}
Svgtopam User Manual(1)                General Commands Manual               Svgtopam User Manual(1)

NAME
       svgtopam - convert an SVG (Scalable Vector Graphics) image to Netpbm format


SYNOPSIS
       svgtopam [-trace] [pnmfile]

       Minimum  unique  abbreviation of option is acceptable.  You may use double hyphens instead of
       single hyphen to denote options.  You may use white space in place of the equals sign to sep‐
       arate an option name from its value.


DESCRIPTION
       This program is part of Netpbm(1).

       svgtopam reads an SVG (Scalable Vector Graphics) image as input and produces a PAM  image  as
       output.

       svgtopam  is so weak that it is probably not useful in general for converting SVG images.  It
       understands only <path> SVG elements which use only the "M", "L", and "z" commands, and  only
       those  that use whole number arguments.  This is sufficient for converting most of what comes
       out of pamtosvg (not by coincidence - the program was developed  for  the  specific  task  of
       testing  pamtosvg), but the main reason it is part of Netpbm is to provide a base for someone
       to create a full SVG to Netpbm converter.

       SVG is a vector image format, which means it describes curves that compose an image.  By con‐
       trast, PNM is a raster format, which means it describes dots that compose an image.  The main
       practical difference between the two types is that you can scale  vector  images  better.   A
       vector image also takes a lot less data to describe an image if the image is composed of sim‐
       ple curves.

       That  means it is really an understatement to say that svgtopam is an image format converter.
       It's really an image drawer, not unlike ppmdraw.

       For more information on SVG, see ]8;;http://www.w3.org/Graphics/SVG/\the Worldwide Web Consortium's SVG web page]8;;\ .



OPTIONS
       In addition to the options common to all programs based on libnetpbm  (most  notably  -quiet,
       see ]8;;index.html#commonoptions\ Common Options]8;;\ ), svgtopam recognizes the following command line option:




       -trace This option makes svgtopam issue messages describing the drawing.





SEE ALSO
       pamtosvg(1), pam(1),


HISTORY
       svgtopam was added to Netpbm in Version 10.34 (May 2006).

       Bryan Henderson created svgtopam to test pamtosvg.

DOCUMENT SOURCE
       This  manual  page  was  generated by the Netpbm tool 'makeman' from HTML source.  The master
       documentation is at

              http://netpbm.sourceforge.net/doc/svgtopam.html

netpbm documentation                        28 June 2017                     Svgtopam User Manual(1)

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-03 09:10 @216.73.216.239
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!