|
Packit |
78deda |
|
|
Packit |
78deda |
<HTML><HEAD><TITLE>Pbmtomacp User Manual</TITLE></HEAD>
|
|
Packit |
78deda |
<BODY>
|
|
Packit |
78deda |
pbmtomacp
|
|
Packit |
78deda |
Updated: 26 April 2015
|
|
Packit |
78deda |
|
|
Packit |
78deda |
Table Of Contents
|
|
Packit |
78deda |
|
|
Packit |
78deda |
NAME
|
|
Packit |
78deda |
|
|
Packit |
78deda |
pbmtomacp - convert a PBM image to a MacPaint file
|
|
Packit |
78deda |
|
|
Packit |
78deda |
SYNOPSIS
|
|
Packit |
78deda |
|
|
Packit |
78deda |
pbmtomacp
|
|
Packit |
78deda |
[-left left]
|
|
Packit |
78deda |
|
|
Packit |
78deda |
[-right right]
|
|
Packit |
78deda |
|
|
Packit |
78deda |
[-top top]
|
|
Packit |
78deda |
|
|
Packit |
78deda |
[-bottom bottom]
|
|
Packit |
78deda |
|
|
Packit |
78deda |
[pbmfile]
|
|
Packit |
78deda |
|
|
Packit |
78deda |
All options can be abbreviated to their shortest unique prefix.
|
|
Packit |
78deda |
You may use two hyphens instead of one to designate an option. You
|
|
Packit |
78deda |
may use either white space or equals signs between an option name and
|
|
Packit |
78deda |
its value.
|
|
Packit |
78deda |
|
|
Packit |
78deda |
|
|
Packit |
78deda |
DESCRIPTION
|
|
Packit |
78deda |
|
|
Packit |
78deda |
This program is part of Netpbm.
|
|
Packit |
78deda |
|
|
Packit |
78deda |
pbmtomacp reads a PBM image as input and produces a MacPaint
|
|
Packit |
78deda |
file as output.
|
|
Packit |
78deda |
|
|
Packit |
78deda |
If you do not specify pbmfile, pbmtomacp uses Standard Input.
|
|
Packit |
78deda |
|
|
Packit |
78deda |
The generated file is only the data fork of a picture. You will
|
|
Packit |
78deda |
need a program such as mcvert to generate a Macbinary or a
|
|
Packit |
78deda |
BinHex file that contains the necessary information to identify the
|
|
Packit |
78deda |
file as a PNTG file to MacOS.
|
|
Packit |
78deda |
|
|
Packit |
78deda |
|
|
Packit |
78deda |
OPTIONS
|
|
Packit |
78deda |
|
|
Packit |
78deda |
|
|
Packit |
78deda |
|
|
Packit |
78deda |
-norle
|
|
Packit |
78deda |
|
|
Packit |
78deda |
This option tells pbmtomacp not to use any run length encoding
|
|
Packit |
78deda |
compression in the MacPaint image it produces. This output, while not
|
|
Packit |
78deda |
normal, conforms to MacPaint specifications and can be read by any
|
|
Packit |
78deda |
MacPaint decoder without any special settings.
|
|
Packit |
78deda |
|
|
Packit |
78deda |
The only value of this option is testing and experimentation. The option
|
|
Packit |
78deda |
causes every output image to contain exactly 53072 bytes, which is the
|
|
Packit |
78deda |
theoretical maximum size for a MacPaint image.
|
|
Packit |
78deda |
|
|
Packit |
78deda |
Without -norle, MacPaint compresses the image as much as possible
|
|
Packit |
78deda |
and the output size depends on the nature of the input.
|
|
Packit |
78deda |
|
|
Packit |
78deda |
-left
|
|
Packit |
78deda |
-right
|
|
Packit |
78deda |
-top
|
|
Packit |
78deda |
-bottom
|
|
Packit |
78deda |
|
|
Packit |
78deda |
These options let you define a rectangle within the image to convert. The
|
|
Packit |
78deda |
default is the whole file. If the specified image is too large for a
|
|
Packit |
78deda |
MacPaint-file, pbmtomacp cuts the image to fit, starting at the
|
|
Packit |
78deda |
specified top left corner.
|
|
Packit |
78deda |
|
|
Packit |
78deda |
These options exist for backward compatibility with an unfortunate original
|
|
Packit |
78deda |
design. They do the same thing that you can do in a more Netpbm-like way and
|
|
Packit |
78deda |
more flexibly by processing the input through pamcut.
|
|
Packit |
78deda |
|
|
Packit |
78deda |
|
|
Packit |
78deda |
|
|
Packit |
78deda |
|
|
Packit |
78deda |
SEE ALSO
|
|
Packit |
78deda |
|
|
Packit |
78deda |
macptopbm,
|
|
Packit |
78deda |
ppmtopict,
|
|
Packit |
78deda |
pamcut,
|
|
Packit |
78deda |
pbm,
|
|
Packit |
78deda |
mcvert documentation
|
|
Packit |
78deda |
|
|
Packit |
78deda |
|
|
Packit |
78deda |
HISTORY
|
|
Packit |
78deda |
|
|
Packit |
78deda |
pbmtomacp was added to Netpbm in 1988, written by Douwe van der
|
|
Packit |
78deda |
Schaaf (...!mcvax!uvapsy!vdschaaf).
|
|
Packit |
78deda |
|
|
Packit |
78deda |
In 2015, Akira Urushibata ("Douso") replaced the program with
|
|
Packit |
78deda |
the current version, using different logic and none of the original code.
|
|
Packit |
78deda |
The new version used the "packed PBM" facilities of the Netpbm
|
|
Packit |
78deda |
library and the shhopt method of command line parsing.
|
|
Packit |
78deda |
|
|
Packit |
78deda |
|
|
Packit |
78deda |
Table Of Contents
|
|
Packit |
78deda |
|
|
Packit |
78deda |
SYNOPSIS
|
|
Packit |
78deda |
DESCRIPTION
|
|
Packit |
78deda |
OPTIONS
|
|
Packit |
78deda |
SEE ALSO
|
|
Packit |
78deda |
AUTHOR
|
|
Packit |
78deda |
|
|
Packit |
78deda |
</BODY>
|
|
Packit |
78deda |
</HTML>
|