# man > pbmtomacp(1)

> **TLDR:** Convert a PBM image to a MacPaint file.
>
- Convert a PBM image to a MACP file:
  `pbmtomacp {{path/to/image.pbm}} > {{path/to/output.macp}}`
- Do not compress the output file:
  `pbmtomacp {{-n|-norle}} {{path/to/image.pbm}} > {{path/to/output.macp}}`

*Source: tldr-pages*

---

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



## NAME
       pbmtomacp - convert a portable bitmap into a MacPaint file

## SYNOPSIS
       **pbmtomacp** [**-l** _left_] [**-r** _right_] [**-b** _bottom_] [**-t** _top_] [_pbmfile_]

## DESCRIPTION
       Reads  a  portable  bitmap  as  input.  If no input-file is given, standard input is assumed.
       Produces a MacPaint file as output.

       The generated file is only the data fork of a picture.  You  will  need  a  program  such  as
       _mcvert_  to  generate  a Macbinary or a BinHex file that contains the necessary information to
       identify the file as a PNTG file to MacOS.

## OPTIONS
       Left, right, bottom & top let you define a square into the pbm file, that must be  converted.
       Default  is  the whole file.  If the file is too large for a MacPaint-file, the bitmap is cut
       to fit from ( left, top ).

## BUGS
       The source code contains comments in a language other than English.

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

## AUTHOR
       Copyright (C) 1988 by Douwe van der Schaaf (...!mcvax!uvapsy!vdschaaf).



                                           31 August 1988                               [pbmtomacp(1)](https://www.chedong.com/phpMan.php/man/pbmtomacp/1/markdown)
