# man > pnmtosir(1)

> **TLDR:** Convert a PNM file to a Solitaire Image Recorder file.
>
- Convert a PNM image to a SIR image:
  `pnmtosir {{path/to/input.pnm}} > {{path/to/output.sir}}`

*Source: tldr-pages*

---

_Pnmtosir_ _User_ [_Manual_(1)](https://www.chedong.com/phpMan.php/man/Manual/1/markdown)                General Commands Manual               _Pnmtosir_ _User_ [_Manual_(1)](https://www.chedong.com/phpMan.php/man/Manual/1/markdown)

## NAME
       pnmtosir - convert a PNM image into a Solitaire format


## SYNOPSIS
### pnmtosir

       [_pnmfile_]


## DESCRIPTION
       This program is part of [**Netpbm**(1)](https://www.chedong.com/phpMan.php/man/Netpbm/1/markdown).

       **pnmtosir **reads a PNM image as input and produces a Solitaire Image Recorder format image.

       **pnmtosir  **produces  an MGI TYPE 17 file for PBM and PGM files.  For PPM, it writes a MGI TYPE
       11 file.


## OPTIONS
       There are no command line options defined specifically for **pnmtosir**, but  it  recognizes  the
       options common to all programs based on libnetpbm (See ]8;;index.html#commonoptions\ Common Options]8;;\ .)


## SEE ALSO
       [**sirtopnm**(1)](https://www.chedong.com/phpMan.php/man/sirtopnm/1/markdown), [**pnm**(1)](https://www.chedong.com/phpMan.php/man/pnm/1/markdown)


## AUTHOR
       Copyright (C) 1991 by Marvin Landis.

## 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/pnmtosir.html>**

netpbm documentation                        20 March 1991                    _Pnmtosir_ _User_ [_Manual_(1)](https://www.chedong.com/phpMan.php/man/Manual/1/markdown)
