Pamtosvg User Manual(1) General Commands Manual Pamtosvg User Manual(1)
NAME
pamtosvg - convert a Netpbm image to a SVG (Scalable Vector Graphics) image
SYNOPSIS
pamtosvg
[-background-color=colorname] [-centerline] [-corner-threshold=angle] [-corner-always-threshold=angle] [-corner-sur‐
round=integer] [-tangent-surround=integer] [-error-threshold=float] [-filter-iterations=count] [-line-reversion-
threshold=float] [-line-threshold=float] [-width-weight-factor=float] [-preserve-width] [-remove-adjacent-corners]
[-log] [-report-progress] [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 separate an option name from its value.
DESCRIPTION
This program is part of Netpbm(1).
pamtosvg reads a PNM image as input and produce an SVG (Scalable Vector Graphics) image as output. Thus, it traces
curves in the input image and creates a set of splines that represent the image.
SVG is a vector image format, which means it describes curves that compose an image. By contrast, 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 simple curves.
That means it is really an understatement to say that pamtosvg is an image format converter. It's really an image
tracer. Its main job is to trace a raster image and find the lines in it. It then represents its findings in SVG
format.
pamtosvg does the same kind of thing that StreamLine, CorelTrace, and Autotrace do. It is in fact derived from Auto‐
trace.
SVG is a gigantic format, capable of amazing things. pamtosvg exploits only a morsel of it. The SVG image produced
by pamtosvg consists of a single