---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pgmtost4

> Convert a PGM image to the SBIG ST-4 format.
> More information: <https://netpbm.sourceforge.net/doc/pgmtost4.html>.

- Convert a PGM image file to the SBIG ST-4 format:

`pgmtost4 {{path/to/input_file.pgm}} > {{path/to/output.st4}}`
