# man > pbmtogem(1)

> **TLDR:** Read a PBM image as input and produce a compressed GEM `.img` file as output.
>
- Convert a PBM image into a GEM `.img` file:
  `pbmtogem {{path/to/file.pbm}} > {{path/to/file.img}}`
- Suppress all informational messages:
  `pbmtogem {{-q|-quiet}}`
- Display version:
  `pbmtogem {{-v|-version}}`

*Source: tldr-pages*

---

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

## NAME
       pbmtogem - convert a PBM image into a GEM .img file


## SYNOPSIS
       **pbmtogem **[_pbmfile_]


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

       **pbmtogem **reads a PBM image as input and produces a compressed GEM .img file as output.


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


## LIMITATIONS
       **pbmtogem **cannot compress repeated lines.


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


## AUTHOR
       Copyright (C) 1988 by David Beckemeyer (bdt!david) and Jef Poskanzer.

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

netpbm documentation                        11 July 1992                     _Pbmtogem_ _User_ [_Manual_(1)](https://www.chedong.com/phpMan.php/man/Manual/1/markdown)
