# 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(1)](https://www.chedong.com/phpMan.php/man/pbmtogem/1/markdown)                            General Commands Manual                           [pbmtogem(1)](https://www.chedong.com/phpMan.php/man/pbmtogem/1/markdown)



## NAME
       pbmtogem - convert a portable bitmap into a GEM .img file

## SYNOPSIS
       **pbmtogem** [_pbmfile_]

## DESCRIPTION
       Reads a portable bitmap as input.  Produces a compressed GEM .img file as output.

## BUGS
       pbmtogem does not support compression of repeated lines

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

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




                                            11 July 1992                                 [pbmtogem(1)](https://www.chedong.com/phpMan.php/man/pbmtogem/1/markdown)
