1Pbmtomacp User Manual(0)                              Pbmtomacp User Manual(0)
2
3
4

NAME

6       pbmtomacp - convert a PBM image to a MacPaint file
7
8

SYNOPSIS

10       pbmtomacp [-left left]
11
12       [-right right]
13
14       [-top top]
15
16       [-bottom bottom]
17
18       [pbmfile]
19
20       All  options  can  be abbreviated to their shortest unique prefix.  You
21       may use two hyphens instead of one to designate an option.  You may use
22       either  white  space  or  equals  signs  between an option name and its
23       value.
24
25
26

DESCRIPTION

28       This program is part of Netpbm(1).
29
30       pbmtomacp reads a PBM image as input and produces a  MacPaint  file  as
31       output.
32
33       If you do not specify pbmfile, pbmtomacp uses Standard Input.
34
35        The  generated file is only the data fork of a picture.  You will need
36       a program such as mcvert to generate a Macbinary or a BinHex file  that
37       contains  the necessary information to identify the file as a PNTG file
38       to MacOS.
39
40
41

OPTIONS

43       In addition to the options common to all programs  based  on  libnetpbm
44       (most notably -quiet, see
45        Common  Options ⟨index.html#commonoptions⟩ ), pbmtomacp recognizes the
46       following command line options:
47
48
49
50
51       -norle This option tells pbmtomacp not to use any run  length  encoding
52              compression  in  the  MacPaint  image it produces.  This output,
53              while not normal, conforms to MacPaint specifications and can be
54              read by any MacPaint decoder without any special settings.
55
56              The  only  value  of this option is testing and experimentation.
57              The option causes every output image to  contain  exactly  53072
58              bytes,  which  is  the  theoretical  maximum size for a MacPaint
59              image.
60
61              Without -norle, MacPaint compresses the image as much as  possi‐
62              ble and the output size depends on the nature of the input.
63
64
65       -left  -right  -top  -bottom  These  options let you define a rectangle
66              within the image to convert.  The default is the whole file.  If
67              the  specified image is too large for a MacPaint-file, pbmtomacp
68              cuts the image to fit, starting at the specified top  left  cor‐
69              ner.
70
71              These  options exist for backward compatibility with an unfortu‐
72              nate original design.  They do the same thing that you can do in
73              a more Netpbm-like way and more flexibly by processing the input
74              through pamcut.
75
76
77
78

SEE ALSO

80       macptopbm(1), ppmtopict(1), pamcut(1), pbm(1), mcvert documentation
81
82

HISTORY

84       pbmtomacp was added to Netpbm in 1988, written by Douwe van der  Schaaf
85       (...!mcvax!uvapsy!vdschaaf).
86
87       In  2015,  Akira  Urushibata replaced the program with the current ver‐
88       sion, using different logic and none of the  original  code.   The  new
89       version  used the "packed PBM" facilities of the Netpbm library and the
90       shhopt method of command line parsing.
91

DOCUMENT SOURCE

93       This manual page was generated by the Netpbm tool 'makeman'  from  HTML
94       source.  The master documentation is at
95
96              http://netpbm.sourceforge.net/doc/pbmtomacp.html
97
98netpbm documentation             26 April 2015        Pbmtomacp User Manual(0)
Impressum