SVGTOPAM(1)

πŸ“¦
version 11.13.03 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’… SVGTOPAM(1) β€” the manual, but make it cute ✨

okay bestie, so this is the Svgtopam User Manual, and I'm about to tell you everything about it. every flag. every caveat. no skips. πŸŽ€


✨ NAME ✨

svgtopam β€” convert an SVG (Scalable Vector Graphics) image to Netpbm format πŸ¦‹


🌸 SYNOPSIS 🌸

svgtopam [-trace] [pnmfile]

Quick lil note before we go any further, because this trips people up: minimum unique abbreviation of the option is acceptable. You can also use double hyphens instead of a single hyphen to denote options. And yes, you can use white space in place of the equals sign to separate an option name from its value. so flexible of her honestly πŸ‘‘


πŸ’– 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.

now. bestie. i have to be real with you. 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. that's it. that's the whole skillset.

this IS sufficient for converting most of what comes out of pamtosvg though β€” and no, that is not by coincidence, the program was literally developed for the specific task of testing pamtosvg. πŸ™ˆ the main reason it's part of Netpbm, though, is to provide a base for someone to create a full SVG to Netpbm converter. so like... it's a starter kit, not a finished queen.

here's the vibe difference, because it's actually interesting:

  • SVG is a vector image format β€” it describes curves that compose an image.
  • PNM is a raster format β€” 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. slay. ✨

which means it is really an understatement to say that svgtopam is an image format converter. it's really an image drawer, not unlike ppmdraw. she doesn't convert, she paints. πŸ’…

for more information on SVG, see the Worldwide Web Consortium's SVG web page.


πŸŽ€ OPTIONS πŸŽ€

In addition to the options common to all programs based on libnetpbm (most notably -quiet, see Common Options), svgtopam recognizes the following command line option:

  • -trace β€” this option makes svgtopam issue messages describing the drawing.

that's it. one option. she's lowkey minimal. 🌸


πŸ¦‹ SEE ALSO πŸ¦‹


πŸ“œ 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

and that's the whole page, bestie, we ate and left no crumbs πŸ“ this was Netpbm documentation, dated 28 June 2017 β€” mwah, go convert something iconic πŸ’–βœ¨πŸ‘‘

πŸ“¦ where this page comes from