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       -norle This option tells pbmtomacp not to use any run  length  encoding
44              compression  in  the  MacPaint  image it produces.  This output,
45              while not normal, conforms to MacPaint specifications and can be
46              read by any MacPaint decoder without any special settings.
47
48              The  only  value  of this option is testing and experimentation.
49              The option causes every output image to  contain  exactly  53072
50              bytes,  which  is  the  theoretical  maximum size for a MacPaint
51              image.
52
53              Without -norle, MacPaint compresses the image as much as  possi‐
54              ble and the output size depends on the nature of the input.
55
56
57       -left  -right  -top  -bottom  These  options let you define a rectangle
58              within the image to convert.  The default is the whole file.  If
59              the  specified image is too large for a MacPaint-file, pbmtomacp
60              cuts the image to fit, starting at the specified top  left  cor‐
61              ner.
62
63              These  options exist for backward compatibility with an unfortu‐
64              nate original design.  They do the same thing that you can do in
65              a more Netpbm-like way and more flexibly by processing the input
66              through pamcut.
67
68
69
70
71

SEE ALSO

73       macptopbm(1), ppmtopict(1), pamcut(1), pbm(1), mcvert documentation
74
75
76

HISTORY

78       pbmtomacp was added to Netpbm in 1988, written by Douwe van der  Schaaf
79       (...!mcvax!uvapsy!vdschaaf).
80
81       In  2015, Akira Urushibata ("Douso") replaced the program with the cur‐
82       rent version, using different logic and none of the original code.  The
83       new  version used the "packed PBM" facilities of the Netpbm library and
84       the shhopt method of command line parsing.
85

DOCUMENT SOURCE

87       This manual page was generated by the Netpbm tool 'makeman'  from  HTML
88       source.  The master documentation is at
89
90              http://netpbm.sourceforge.net/doc/pbmtomacp.html
91
92netpbm documentation             26 April 2015        Pbmtomacp User Manual(0)
Impressum