118.9. netpbm-11.16.1
Several hundred converters and filters for the PBM, PGM, PPM and PAM image formats, and libnetpbm
| Version | 11.16.1, release 2 |
| Shelf | image-libs — Raster image formats, codecs, metadata, processing, barcodes, and terminal image output |
| Phase | 41_system (System), 409 of 1047 in build order |
| Licence | IJG AND BSD-3-Clause AND GPL-2.0-only |
| Homepage | https://netpbm.sourceforge.net/ |
| Build time | 0.5 SBU |
| Installed size | 10.5 MiB in 838 files |
| Recipe | ports/core/image-libs/netpbm/kpkgbuild |
About
Netpbm is several hundred small converters and filters for the PBM, PGM, PPM and PAM image formats (pngtopnm, pnmscale, ppmtojpeg, pamcut and so on) and the libnetpbm library they share, built to be chained in a pipeline. groff and gts depend on it.
The source is a release of the netpbm-make-dist project, whose tarball carries Netpbm’s HTML user guide beside the code.
Sources
netpbm-11.16.1.tar.xz(3.7 MiB)
sha256ddd596db2b8200f249c4c2cbe8595c0bbfd152a206712c2f5e55551cc3e95767
upstream: https://github.com/ceamac/netpbm-make-dist/releases/download/v11.16.1/netpbm-11.16.1.tar.xz
archive copy: sources-3/image-libs--netpbm-11.16.1.tar.xz
Dependencies
Depends on: flex, perl, python3, pkgconf, zlib, libpng, libjpeg-turbo, libtiff, jasper, libxml2, ghostscript.
Patches
build.sh applies these; kpkg applies nothing by itself.
no-pamx.patch— Build no pamx whatever pkg-config says about x11
Installation
From the repository root, inside the build container, this is the line kdosbuild runs for the port:
script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install netpbm'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/image-libs/netpbm.
1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.
cd /ports/core/image-libs/netpbm
echo 'ddd596db2b8200f249c4c2cbe8595c0bbfd152a206712c2f5e55551cc3e95767 netpbm-11.16.1.tar.xz' | sha256sum -c -
2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.
SRC_ROOT=/var/cache/kpkg/work/netpbm
SRC=$SRC_ROOT/netpbm-11.16.1
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf netpbm-11.16.1.tar.xz -C "$SRC" --strip-components=1
Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.
3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:
patch -p1 -i "$PORT_SRC/no-pamx.patch"
cp config.mk.in config.mk
conf=(
DEFAULT_TARGET=nonmerge
NETPBMLIBTYPE=unixshared
NETPBMLIBSUFFIX=so
STATICLIB_TOO=Y
CC=gcc
LDRELOC="ld --reloc"
LINKER_CAN_DO_EXPLICIT_LIBRARY=Y
LINKERISCOMPILER=Y
CFLAGS_SHLIB=-fPIC
STRIPFLAG=
WANT_SSE=Y
TIFFLIB=-ltiff
TIFFHDR_DIR=
JPEGLIB=-ljpeg
JPEGHDR_DIR=
PNGLIB=-lpng
PNGHDR_DIR=
ZLIB=-lz
ZHDR_DIR=
JASPERLIB=-ljasper
JASPERHDR_DIR=
X11LIB=NONE
LINUXSVGALIB=NONE
RGB_DB_PATH=/usr/share/netpbm/rgb.txt
)
make "${conf[@]}"
make "${conf[@]}" package pkgdir="$SRC_ROOT/netpbm-pkg"
P=$SRC_ROOT/netpbm-pkg
install -d "$PKG/usr/bin" "$PKG/usr/lib/pkgconfig" "$PKG/usr/include" "$PKG/usr/share/netpbm"
cp -a "$P"/bin/. "$PKG/usr/bin/"
cp -a "$P"/lib/. "$PKG/usr/lib/"
cp -a "$P"/sharedlink/. "$PKG/usr/lib/"
cp -a "$P"/staticlink/. "$PKG/usr/lib/"
cp -a "$P"/include/. "$PKG/usr/include/"
cp -a "$P"/misc/. "$PKG/usr/share/netpbm/"
cat > "$PKG/usr/lib/pkgconfig/netpbm.pc" <<PC
Name: Netpbm
Description: Graphics utilities
Version: $version
Libs: -L/usr/lib -lnetpbm
Cflags: -I/usr/include
PC
for f in COPYRIGHT.PATENT copyright_summary GPL_LICENSE.txt lgpl_v21.txt; do
install -Dm644 "doc/$f" "$PKG/usr/share/licenses/$name/$f"
done
for f in lib/util/randmersenne.c converter/other/pamtooctaveimg.c converter/pbm/pbmtodjvurle.c \
editor/pamhomography.c editor/pammixmulti.c editor/pnmstitch.c generator/pamstereogram.c; do
awk '/Copyright \([Cc]\)/{b=""} {b=b $0 "\n"} /Redistribution and use/{r=1} r&&/\*\//{printf "%s", b; exit}' "$f" \
> "$PKG/usr/share/licenses/$name/BSD-${f##*/}"
done
mkdir man && cd man
python3 ../buildtools/makeman -d ../userguide $(cd ../userguide && ls *.html | grep -v -x -e directory.html -e error.html -e hpcdtoppm.html -e liberror.html -e libnetpbm_dir.html -e ppmsvgalib.html -e vidtoppm.html)
mv index.1 netpbm.1
for s in 1 3 5; do
install -d "$PKG/usr/share/man/man$s"
install -m644 *.$s "$PKG/usr/share/man/man$s/"
done
The switches, and why each is set:
Netpbm has no configure script that a recipe can drive; build.sh copies config.mk.in to config.mk and passes every setting the build relies on, defaults among them, on the make command line.
DEFAULT_TARGET=nonmerge— Build each program as its own executable, rather than one merged binary that every program name links to. WithNETPBMLIBTYPE=unixshared,NETPBMLIBSUFFIX=so,STATICLIB_TOO=YandLINKERISCOMPILER=Y, this isconfig.mk.in’s own default, named so the build does not depend on it:libnetpbmis a Unix shared library, a staticlibnetpbm.ais built beside it, and linker options are passed in the-Wl,form a compiler driver takes.CC=gcc— Compile and link withgcc; the default iscc.LDRELOC="ld --reloc"— The command that combines relocatable objects into one; the default,NONE, says the system has none.LINKER_CAN_DO_EXPLICIT_LIBRARY=Y— Let the linker take a library as a file name on its command line, rather than only through-l.CFLAGS_SHLIB=-fPIC— Compile the library’s objects as position-independent code; the default is empty.STRIPFLAG=— Install the programs unstripped. Netpbm’s installer strips by default, and a port keeps an upstream’s stripping switched off so the package carries the symbols its flags compiled; see Size and language policy.WANT_SSE=Y— Use the SSE intrinsics where Netpbm’s code has them.TIFFLIB=-ltiff— WithJPEGLIB=-ljpeg,PNGLIB=-lpng,ZLIB=-lzandJASPERLIB=-ljasper, build the converters for TIFF, JPEG, PNG and JPEG 2000 against those libraries. The first four default toNONE, which leaves their converters out; JasPer defaults to the copy of libjasper inconverter/other/jpeg2000/libjasper, so the setting links the jasper port instead of that copy. The empty*HDR_DIRsettings say the headers are in the compiler’s default path.X11LIB=NONE— Build nopamx, the program that displays an image on an X server.config.mk.in’s default, named.other/pamx/Makefileignores it once pkg-config knowsx11, and libX11 comes in a later phase than this port, sono-pamx.patchtakes the directory out of the build as well; the package then does not vary with what the tree holds.LINUXSVGALIB=NONE— Build noppmsvgalib, which needs Svgalib.config.mk.in’s default, named.RGB_DB_PATH=/usr/share/netpbm/rgb.txt— Look up colour names in the one colour database the package installs. The default list also names/etc/X11/rgb.txtand other X11 paths, and/etc/X11must never exist on KDOS; see No Xorg server.
The common switches of each build system are explained in the Flag glossary.
4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/netpbm, prunes what the image does not ship, lints the tree and rolls it reproducibly:
tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
--mtime=@$SOURCE_DATE_EPOCH \
--use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
-cf netpbm-11.16.1-2.tar.xz -C "$PKG" .
5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/netpbm, and runs the triggers its paths call for.
Contents
Installed programs: 411toppm, anytopnm, asciitopgm, atktopbm, avstopam, bioradtopgm, bmptopnm, bmptoppm, brushtopbm, cameratopam, cistopbm, cmuwmtopbm, ddbugtopbm, escp2topbm, eyuvtoppm, fiascotopnm, fitstopnm, fstopgm, g3topbm, gemtopbm, gemtopnm, giftopnm, gouldtoppm, hdifftopam, hipstopgm, hpcdtoppm, icontopbm, ilbmtoppm, imgtoppm, infotopam, jbigtopnm, jpeg2ktopam, jpegtopnm, leaftoppm, lispmtopgm, macptopbm, manweb, mdatopbm, mgrtopbm, mrftopbm, mtvtoppm, neotoppm, palmtopnm, pamaddnoise, pamaltsat, pamarith, pambackground, pambayer, pambrighten, pamcat, pamchannel, pamcomp, pamcrater, pamcut, pamdeinterlace, pamdepth, pamdice, pamditherbw, pamedge, pamendian, pamenlarge, pamexec, pamfile, pamfind, pamfix, pamfixtrunc, pamflip, pamfunc, pamgauss, pamgetcolor, pamgradient, pamhomography, pamhue, pamlevels, pamlookup, pammasksharpen, pammixinterlace, pammixmulti, pammosaicknit, pamnoise, pamoil, pampaintspill, pamperspective, pampick, pampop9, pamrecolor, pamrestack, pamrgbatopng, pamrubber, pamscale, pamseq, pamshadedrelief, pamsharpmap, pamsharpness, pamshuffle, pamsistoaglyph, pamslice, pamsplit, pamstack, pamstereogram, pamstretch, pamstretch-gen, pamsumm, pamsummcol, pamtable, pamthreshold, pamtilt, pamtoavs, pamtodjvurle, pamtofits, pamtogif, pamtohdiff, pamtohtmltbl, pamtojpeg2k, pamtompfont, pamtooctaveimg, pamtopam, pamtopdbimg, pamtopfm, pamtopng, pamtopnm, pamtoqoi, pamtosrf, pamtosvg, pamtotga, pamtotiff, pamtouil, pamtowinicon, pamtoxvmini, pamtris, pamundice, pamunlookup, pamvalidate, pamwipeout, pbmclean, pbmlife, pbmmake, pbmmask, pbmminkowski, pbmnoise, pbmpage, pbmpscale, pbmreduce, pbmtext, pbmtextps, pbmto10x, pbmto4425, pbmtoascii, pbmtoatk, pbmtobbnbg, pbmtobrush, pbmtocis, pbmtocmuwm, pbmtodjvurle, pbmtoepsi, pbmtoepson, pbmtoescp2, pbmtog3, pbmtogem, pbmtogo, pbmtoibm23xx, pbmtoicon, pbmtolj, pbmtoln03, pbmtolps, pbmtomacp, pbmtomatrixorbital, pbmtomda, pbmtomgr, pbmtomrf, pbmtonokia, pbmtopgm, pbmtopi3, pbmtopk, pbmtoplot, pbmtoppa, pbmtopsg3, pbmtoptx, pbmtosunicon, pbmtowbmp, pbmtox10bm, pbmtoxbm, pbmtoybm, pbmtozinc, pbmupc, pc1toppm, pcdindex, pcdovtoppm, pcxtoppm, pdbimgtopam, pfmtopam, pgmabel, pgmbentley, pgmcrater, pgmdeshadow, pgmedge, pgmenhance, pgmhist, pgmkernel, pgmmake, pgmmedian, pgmminkowski, pgmmorphconv, pgmnoise, pgmnorm, pgmoil, pgmramp, pgmslice, pgmtexture, pgmtofs, pgmtolispm, pgmtopbm, pgmtopgm, pgmtoppm, pgmtosbig, pgmtost4, pi1toppm, pi3topbm, picttoppm, pjtoppm, pktopbm, pngtopam, pngtopnm, pnmalias, pnmarith, pnmcat, pnmcolormap, pnmcomp, pnmconvol, pnmcrop, pnmcut, pnmdepth, pnmenlarge, pnmfile, pnmflip, pnmgamma, pnmhisteq, pnmhistmap, pnmindex, pnminterp, pnminterp-gen, pnminvert, pnmmargin, pnmmercator, pnmmontage, pnmnlfilt, pnmnoraw, pnmnorm, pnmpad, pnmpaste, pnmpsnr, pnmquant, pnmquantall, pnmremap, pnmrotate, pnmscale, pnmscalefixed, pnmshear, pnmsmooth, pnmsplit, pnmstitch, pnmtile, pnmtoddif, pnmtofiasco, pnmtofits, pnmtojbig, pnmtojpeg, pnmtopalm, pnmtopclxl, pnmtoplainpnm, pnmtopng, pnmtopnm, pnmtops, pnmtorast, pnmtorle, pnmtosgi, pnmtosir, pnmtotiff, pnmtotiffcmyk, pnmtoxwd, ppm3d, ppmbrighten, ppmchange, ppmcie, ppmcolormask, ppmcolors, ppmdcfont, ppmddumpfont, ppmdim, ppmdist, ppmdither, ppmdmkfont, ppmdraw, ppmfade, ppmflash, ppmforge, ppmglobe, ppmhist, ppmlabel, ppmmake, ppmmix, ppmnorm, ppmntsc, ppmpat, ppmquant, ppmquantall, ppmrainbow, ppmrelief, ppmrough, ppmshadow, ppmshift, ppmspread, ppmtoacad, ppmtoapplevol, ppmtoarbtxt, ppmtoascii, ppmtobmp, ppmtoeyuv, ppmtogif, ppmtoicr, ppmtoilbm, ppmtojpeg, ppmtoleaf, ppmtolj, ppmtomap, ppmtomitsu, ppmtompeg, ppmtoneo, ppmtopcx, ppmtopgm, ppmtopi1, ppmtopict, ppmtopj, ppmtopjxl, ppmtoppm, ppmtopuzz, ppmtorgb3, ppmtosixel, ppmtospu, ppmtoterm, ppmtotga, ppmtouil, ppmtowinicon, ppmtoxpm, ppmtoyuv, ppmtoyuvsplit, ppmtv, ppmwheel, psidtopgm, pstopnm, qoitopam, qrttoppm, rasttopnm, rawtopgm, rawtoppm, rgb3toppm, rlatopam, rletopnm, sbigtopgm, sgitopnm, sirtopnm, sldtoppm, spctoppm, spottopgm, sputoppm, srftopam, st4topgm, sunicontopnm, svgtopam, tgatoppm, thinkjettopbm, tifftopnm, wbmptopbm, winicontopam, winicontoppm, xbmtopbm, ximtoppm, xpmtoppm, xvminitoppm, xwdtopnm, ybmtopbm, yuvsplittoppm, yuvtoppm, yuy2topam, zeisstopnm.
Installed libraries: libnetpbm.a, libnetpbm.so.
Installed directories: /usr/include/netpbm, /usr/share/licenses/netpbm, /usr/share/netpbm.
Short descriptions
411toppm |
convert Sony Mavica .411 image to PPM |
anytopnm |
convert an arbitrary type of image file to PBM, PGM, or PPM |
asciitopgm |
convert ASCII graphics into a PGM |
atktopbm |
convert Andrew Toolkit raster object to PBM |
avstopam |
convert an AVS X image to a Netpbm image |
bioradtopgm |
convert a Biorad confocal file into a PGM image |
bmptopnm |
convert a BMP file into a PBM, PGM, or PNM image |
bmptoppm |
replaced by bmptopnm |
brushtopbm |
convert a doodle brush file into a PBM image |
cameratopam |
convert raw camera image to PAM |
cistopbm |
convert Compuserve RLE image to PBM |
cmuwmtopbm |
convert a CMU window manager bitmap into a PBM image |
ddbugtopbm |
convert Diddle or DiddleBug sketches to PBM files |
escp2topbm |
convert an ESC/P2 printer file to a PBM image |
eyuvtoppm |
convert a Berkeley YUV file to a PPM file |
fiascotopnm |
Convert compressed FIASCO image to PGM, or PPM |
fitstopnm |
convert a FITS file into a PNM image |
fstopgm |
convert a Usenix FaceSaver(tm) file into a PGM image |
g3topbm |
convert a Group 3 fax file into a PBM image |
gemtopbm |
replaced by gemtopnm |
gemtopnm |
convert a GEM .img file into a PNM image |
giftopnm |
convert a GIF file into a PNM image |
gouldtoppm |
convert Gould scanner file into a PPM image |
hdifftopam |
convert horizontal difference image to original PAM image |
hipstopgm |
convert a HIPS file into a PGM image |
icontopbm |
replaced by sunicontopnm |
ilbmtoppm |
convert an ILBM file into a PPM image |
imgtoppm |
convert an Img-whatnot file into a PPM image |
infotopam |
convert Amiga .info icons to PAM |
jbigtopnm |
JBIG to PNM image converter |
jpeg2ktopam |
convert JPEG-2000 code stream to PAM/PNM |
jpegtopnm |
convert JPEG/JFIF file to PPM or PGM image |
leaftoppm |
convert Interleaf image format to PPM image |
lispmtopgm |
convert a Lisp Machine bitmap file to PGM |
macptopbm |
convert a MacPaint file into a PBM image |
mdatopbm |
convert a Microdesign .mda or .mdp file into a PBM image |
mgrtopbm |
convert a MGR bitmap into a PBM image |
mrftopbm |
convert an MRF image to PBM format |
mtvtoppm |
convert output from an MTV or PRT ray tracer into a PPM |
neotoppm |
convert an Atari Neochrome .neo into a PPM image |
palmtopnm |
convert a Palm Bitmap to a PNM image |
pamaddnoise |
add noise to a Netpbm image |
pamaltsat |
increase or decrease the saturation of an image using one of several alternative methods. |
pamarith |
perform arithmetic on two Netpbm images |
pambackground |
create a mask of the background area of an image |
pambayer |
interpret Bayer patterns |
pambrighten |
change a PPM image's Saturation and Value |
pamcat |
concatenate Netpbm images |
pamchannel |
extract channels from a PAM image |
pamcomp |
composite (overlay) two Netpbm images together |
pamcrater |
create cratered terrain by fractal forgery |
pamcut |
select a rectangular region of a PAM, PBM, PGM, or PPM image |
pamdeinterlace |
remove every other row from a PAM/PNM image |
pamdepth |
change the depth (color resolution) in a Netpbm image |
pamdice |
slice a Netpbm image into many horizontally and/or vertically |
pamditherbw |
dither grayscale image to black and white |
pamedge |
edge-detect an image |
pamendian |
reverse endianness of a Netpbm image |
pamenlarge |
Enlarge a Netpbm image N times by duplicating pixels |
pamexec |
Execute a shell command on each image in a Netpbm image stream |
pamfile |
describe a Netpbm (PAM or PNM) file |
pamfind |
Print the locations of all tuples of a certain value in an image |
pamfix |
repair a Netpbm image with various corruptions |
pamfixtrunc |
replaced by pamfix |
pamflip |
flip or rotate a PAM or PNM image |
pamfunc |
Apply a simple monadic arithmetic function to a Netpbm image |
pamgauss |
create a two-dimensional Gaussian function as a PAM image |
pamgetcolor |
display the average colors from specified regions in an image. |
pamgradient |
create a four-corner gradient PAM image |
pamhomography |
stretch/shrink a quadrilateral region of an image to another quadrilateral shape |
pamhue |
change a Netpbm image's hues |
pamlevels |
effect a 'levels' transformation |
pamlookup |
map an image to a new image by using it as indices into a table |
pammasksharpen |
Sharpen an image via an unsharp mask |
pammixinterlace |
mix adjacent lines to merge interlaced images |
pammixmulti |
blend together multiple PAM images |
pammosaicknit |
validate a mosaic knitting pattern |
pamnoise |
create a PAM image made up of white noise (random numbers) |
pamoil |
turn a PAM image into an oil painting |
pampaintspill |
smoothly spill colors into the background |
pamperspective |
a reverse scanline renderer for Netpbm images |
pampick |
pick images out of a multi-image Netpbm image stream |
pampop9 |
simulate a multi-lens camera such as the Pop9 |
pamrecolor |
alter colors without affecting luminance |
pamrestack |
Rearrange rows of a Netpbm image |
pamrgbatopng |
replaced by pamtopng |
pamrubber |
a rubber-sheeting utility that stretches an image based on control points |
pamscale |
scale a Netpbm image |
pamseq |
generate PAM image of a numerical sequence of tuple values |
pamshadedrelief |
generate shaded relief image from an elevation map |
pamsharpmap |
create map of sharpness in a PNM/PAM image |
pamsharpness |
measure the sharpness of a PNM/PAM image |
pamshuffle |
Shuffle pixels of a Netpbm image |
pamsistoaglyph |
convert a single-image stereogram to a red/cyan anaglyphic image |
pamslice |
extract one line of values out of a Netpbm image |
pamsplit |
split a multi-image Netpbm file into single-image files |
pamstack |
stack planes of multiple PAM images into one PAM image |
pamstereogram |
create a single-image stereogram from a PAM depth map |
pamstretch |
scale up a PNM or PAM image by interpolating between pixels. |
pamstretch-gen |
use pamstretch and pamscale to scale by non-integer values |
pamsumm |
Summarize the samples in a Netpbm image arithmetically |
pamsummcol |
summarize (sum, average, etc) a Netpbm image by column |
pamtable |
print the raster as a table of numerical sample values |
pamthreshold |
threshold grayscale image to black and white |
pamtilt |
print the tilt angle of a PGM file |
pamtoavs |
convert a Netpbm image to an AVS X image |
pamtodjvurle |
convert a Netpbm image to DjVu Color RLE format |
pamtofits |
convert a Netpbm image into FITS format |
pamtogif |
convert a Netpbm image to a GIF image |
pamtohdiff |
convert PAM image to horizontal difference image |
pamtohtmltbl |
convert pnm/pam visual image to an HTML table |
pamtojpeg2k |
convert PAM/PNM image to a JPEG-2000 code stream |
pamtompfont |
Convert Netpbm image to Mplayer bitmap font file |
pamtooctaveimg |
convert a Netpbm image to a GNU Octave image |
pamtopam |
copy PAM image |
pamtopdbimg |
convert a Netpbm image to a Palm Pilot Image Viewer PDB Image |
pamtopfm |
Convert Netpbm image to PFM (Portable Float Map) |
pamtopng |
convert a Netpbm image to PNG |
pamtopnm |
convert PAM image to PBM, PGM, or PPM |
pamtoqoi |
Convert Netpbm image to QOI format (Quite OK Image format) |
pamtosrf |
convert a sequence of Netpbm images to a SRF image file |
pamtosvg |
convert a Netpbm image to a SVG (Scalable Vector Graphics) image |
pamtotga |
convert a Netpbm image to a TrueVision Targa file |
pamtotiff |
convert a Netpbm image to a TIFF file |
pamtouil |
convert a PNM or PNM/transparency image into a Motif UIL icon file |
pamtowinicon |
convert Netpbm PAM images to a Microsoft Windows icon file |
pamtoxvmini |
convert Netpbm image to an XV "thumbnail" picture |
pamtris |
triangle rasterizer featuring perspective-correct interpolation of generic vertex attributes and depth buffering |
pamundice |
combine grid of images (tiles) into one |
pamunlookup |
inverse of pamlookup |
pamvalidate |
validate Netpbm image format |
pamwipeout |
replace detail with smooth gradient from one edge to the other |
pbmclean |
despeckle a PBM image |
pbmlife |
apply Conway's rules of Life to a PBM image |
pbmmake |
create a blank bitmap of a specified size |
pbmmask |
create a mask bitmap from a regular bitmap |
pbmminkowski |
compute Minkowski integral |
pbmnoise |
create a PBM image made up of white noise |
pbmpage |
create a one page test pattern for printing |
pbmpscale |
enlarge a PBM image with edge smoothing |
pbmreduce |
read a PBM image and reduce it N times |
pbmtext |
render text into a PBM image |
pbmtextps |
render text into a PBM image using a postscript interpreter |
pbmto10x |
convert a PBM image into Gemini 10X printer graphics |
pbmto4425 |
Display PBM images on an AT&T 4425 terminal |
pbmtoascii |
convert a PBM image to ASCII graphics |
pbmtoatk |
convert a PBM image to a Andrew Toolkit raster object |
pbmtobbnbg |
convert a PBM image into BitGraph graphics |
pbmtobrush |
convert a PBM image to a doodle brush file |
pbmtocis |
convert a PBM image to a CompuServe RLE image |
pbmtocmuwm |
convert a PBM image into a CMU window manager bitmap |
pbmtodjvurle |
convert a PBM image to DjVu Bitonal RLE format |
pbmtoepsi |
convert a PBM image to an encapsulated PostScript style preview bitmap |
pbmtoepson |
convert a PBM image into Epson printer graphics |
pbmtoescp2 |
convert a PBM image to a ESC/P2 printer file |
pbmtog3 |
convert a PBM image into a Group 3 MH fax file |
pbmtogem |
convert a PBM image into a GEM .img file |
pbmtogo |
convert a PBM image into compressed GraphOn graphics |
pbmtoibm23xx |
convert a PBM image to IBM 23XX printer stream |
pbmtoicon |
replaced by pbmtosunicon |
pbmtolj |
convert a PBM image to HP LaserJet format |
pbmtoln03 |
convert PBM image to DEC LN03+ Sixel output |
pbmtolps |
convert PBM image to PostScript |
pbmtomacp |
convert a PBM image to a MacPaint file |
pbmtomatrixorbital |
convert a PBM image to a Matrix Orbital LCD image |
pbmtomda |
convert a PBM image to a Microdesign .mda |
pbmtomgr |
convert a PBM image into a MGR bitmap |
pbmtomrf |
convert a PBM format image to MRF |
pbmtonokia |
convert a PBM image to Nokia Smart Messaging Formats |
pbmtopgm |
convert PBM image to PGM by averaging areas |
pbmtopi3 |
convert a PBM image into an Atari Degas .pi3 file |
pbmtopk |
convert a PBM image into a packed (PK) format font |
pbmtoplot |
convert a PBM image into a Unix 'plot' file |
pbmtoppa |
convert PBM image to HP Printer Performance Architecture (PPA) |
pbmtopsg3 |
convert PBM images to Postscript with G3 fax compression |
pbmtoptx |
convert a PBM image into Printronix printer graphics |
pbmtosunicon |
convert a PBM image into a Sun icon |
pbmtowbmp |
convert a PBM image to a wireless bitmap (wbmp) file |
pbmtox10bm |
replaced by pbmtoxbm |
pbmtoxbm |
convert a PBM image to an X11 bitmap |
pbmtoybm |
convert a PBM image into a Bennet Yee "face" file |
pbmtozinc |
convert a PBM image into a Zinc bitmap |
pbmupc |
create a Universal Product Code PBM image |
pc1toppm |
convert an Atari Degas .pc1 into a PPM image |
pcdindex |
renamed to pcdovtoppm |
pcdovtoppm |
create index image for a photo CD |
pcxtoppm |
convert a PCX file into a PPM image |
pdbimgtopam |
convert a Palm Pilot Image Viewer PDB Image to a PAM image |
pfmtopam |
Convert PFM (Portable Float Map) image to Netpbm format |
pgmabel |
create cross section using Abel Integration for Deconvolution |
pgmbentley |
Bentleyize a PGM image |
pgmcrater |
create cratered terrain by fractal forgery |
pgmdeshadow |
Deshadow a PGM image |
pgmedge |
replaced by pamedge |
pgmenhance |
edge-enhance a PGM image |
pgmhist |
print a histogram of the values in a PGM image |
pgmkernel |
generate a convolution kernel |
pgmmake |
create a PGM image of a specified gray level and dimensions |
pgmmedian |
apply a median filter to a PGM file |
pgmminkowski |
compute Minkowski integral |
pgmmorphconv |
perform morphological convolutions: dilation, erosion |
pgmnoise |
create a PGM image made up of white noise |
pgmnorm |
replaced by pnmnorm |
pgmoil |
replaced by pamoil |
pgmramp |
generate a grayscale ramp |
pgmslice |
extract one line of pixel values out of a PGM |
pgmtexture |
calculate textural features on a PGM image |
pgmtofs |
convert PGM image to Usenix FaceSaver(tm) format |
pgmtolispm |
convert a PGM image to Lisp Machine format |
pgmtopbm |
convert a PGM image to PBM |
pgmtopgm |
copy PGM image |
pgmtoppm |
colorize a PGM (grayscale) image into a PPM (color) image |
pgmtosbig |
convert PGM image to SBIG format |
pgmtost4 |
convert PGM image to SBIG ST-4 format |
pi1toppm |
convert an Atari Degas .pi1 into a PPM image |
pi3topbm |
convert an Atari Degas .pi3 file into a PBM image |
picttoppm |
convert a Macintosh PICT file to a PPM |
pjtoppm |
convert an HP PaintJet file to a PPM image |
pktopbm |
convert packed (PK) format font into PBM |
pngtopam |
convert a PNG image into a Netpbm image |
pngtopnm |
Convert a PNG image to PNM: replaced by pngtopam |
pnmalias |
antialias a PNM image |
pnmarith |
replaced by pamarith |
pnmcat |
replaced by pamcat |
pnmcolormap |
create quantization color map for a Netpbm image |
pnmcomp |
replaced by pamcomp |
pnmconvol |
general MxN convolution on a Netpbm image |
pnmcrop |
crop a Netpbm image |
pnmcut |
replaced by pamcut |
pnmdepth |
replaced by pamdepth |
pnmenlarge |
replaced by pamenlarge |
pnmfile |
replaced by pamfile |
pnmflip |
replaced by pamflip |
pnmgamma |
perform gamma adjustment on a PNM image |
pnmhisteq |
histogram equalize a PNM image |
pnmhistmap |
draw a histogram for a PGM or PPM file |
pnmindex |
build a visual index of a bunch of PNM images |
pnminterp |
replaced by pamstretch |
pnminterp-gen |
replaced by pamstretch-gen |
pnminvert |
invert a PNM image |
pnmmargin |
add borders to a PNM image |
pnmmercator |
transform a worldmap from rectangular projection to Mercator projection and vice-versa |
pnmmontage |
create a montage of PNM images |
pnmnlfilt |
non-linear filters: smooth, alpha trim mean, optimal estimation smoothing, edge enhancement. |
pnmnoraw |
replaced by pnmtoplainpnm and pamtopnm |
pnmnorm |
normalize the contrast in a Netpbm image |
pnmpad |
add borders to a PNM image |
pnmpaste |
paste a rectangle into a PNM image |
pnmpsnr |
compute the difference between two images (the PSNR) |
pnmquant |
quantize the colors in a Netpbm image to a smaller set |
pnmquantall |
run Pnmquant on a bunch of files all at once, so they share a common colormap |
pnmremap |
replace colors in a PNM image with colors from another set |
pnmrotate |
rotate a PNM image by some angle |
pnmscale |
replaced by pamscale |
pnmscalefixed |
scale a PNM file quickly |
pnmshear |
shear a PNM image by a specified angle |
pnmsmooth |
smooth out an image |
pnmsplit |
replaced by pamsplit |
pnmstitch |
stitch together two panoramic (side-by-side) photographs |
pnmtile |
replicate an image to fill a specified region |
pnmtoddif |
Convert a PNM image to DDIF format |
pnmtofiasco |
Convert PNM file to FIASCO compressed file |
pnmtofits |
replaced by pamtofits |
pnmtojbig |
PNM to JBIG file converter |
pnmtojpeg |
convert PNM image to a JFIF ("JPEG") image |
pnmtopalm |
convert a PNM image to a Palm Bitmap |
pnmtopclxl |
convert a PNM image to an HP LaserJet PCL XL printer stream |
pnmtoplainpnm |
replaced by pamtopnm |
pnmtopng |
convert a PNM image to PNG |
pnmtopnm |
copy a PNM image |
pnmtops |
convert PNM image to Postscript |
pnmtorast |
convert a PPM into a Sun rasterfile |
pnmtorle |
convert a Netpbm image file into an RLE image file. |
pnmtosgi |
convert a PNM image to a SGI image file |
pnmtosir |
convert a PNM image into a Solitaire format |
pnmtotiff |
replaced by pamtotiff |
pnmtotiffcmyk |
convert a Netpbm image into a CMYK encoded TIFF file |
pnmtoxwd |
convert a PNM into an X11 window dump |
ppm3d |
convert two PPM images into an anaglyph (red/blue 3d glasses) PPM |
ppmbrighten |
replaced by pambrighten |
ppmchange |
change all pixels of one color to another in a PPM image |
ppmcie |
draw a CIE color chart as a PPM image |
ppmcolormask |
produce mask of areas of a certain color in a PPM file |
ppmcolors |
obsolete |
ppmdcfont |
Turn a Ppmdfont file into C source for a builtin font |
ppmddumpfont |
dump a Ppmdfont file |
ppmdim |
dim a PPM image |
ppmdist |
simplistic grayscale assignment for machine generated, color images |
ppmdither |
ordered dither for color images |
ppmdmkfont |
Create Ppmdfont "standard". |
ppmdraw |
draw lines, text, etc on a PPM image |
ppmfade |
generate a transition between two image files using special effects |
ppmflash |
brighten a picture to approach white |
ppmforge |
fractal forgeries of clouds, planets, and starry skies |
ppmglobe |
generate strips to glue onto a sphere |
ppmhist |
print a histogram of the colors in a PPM image |
ppmlabel |
add text to a PPM image |
ppmmake |
create a PPM image of a specified color and dimensions |
ppmmix |
blend together two PPM images |
ppmnorm |
replaced by pnmnorm |
ppmntsc |
Make RGB colors legal for NTSC or PAL color systems. |
ppmpat |
make a pretty PPM image |
ppmquant |
quantize the colors in a PPM image down to a specified number |
ppmquantall |
replaced by pnmquantall |
ppmrainbow |
Generate a rainbow |
ppmrelief |
compute a relief of a PPM image |
ppmrough |
create PPM image of a single color rectangle with ragged edges on a different color background |
ppmshadow |
add simulated shadows to a PPM image |
ppmshift |
shift lines of a PPM image left or right by a random amount |
ppmspread |
displace a PPM image's pixels by a random amount |
ppmtoacad |
convert PPM to Autocad database or slide |
ppmtoapplevol |
convert a PPM into an Apple volume label image |
ppmtoarbtxt |
generate image in arbitrary text format from PPM image |
ppmtoascii |
convert a PPM image to ASCII graphics with ANSI terminal color |
ppmtobmp |
convert a PPM image into a BMP file |
ppmtoeyuv |
convert a PPM image into a Berkeley YUV file |
ppmtogif |
replaced by pamtogif |
ppmtoicr |
convert a PPM image into NCSA ICR format |
ppmtoilbm |
convert a PPM image into an ILBM file |
ppmtojpeg |
replaced by pnmtojpeg |
ppmtoleaf |
convert PPM image to Interleaf image format |
ppmtolj |
convert a PPM image to an HP LaserJet PCL 5 Color file |
ppmtomap |
replaced by pnmcolormap |
ppmtomitsu |
convert a PPM image to a Mitsubishi S340-10 file |
ppmtompeg |
encode an MPEG-1 bitstream |
ppmtoneo |
convert a PPM into an Atari Neochrome .neo file |
ppmtopcx |
convert a PPM image to a PCX file |
ppmtopgm |
convert a PPM image to a PGM image |
ppmtopi1 |
convert a PPM image into an Atari Degas .pi1 file |
ppmtopict |
convert a PPM image to a Macintosh PICT file |
ppmtopj |
convert a PPM image to an HP PaintJet file |
ppmtopjxl |
convert a PPM image to an HP PaintJet XL PCL file |
ppmtoppm |
copy PPM image |
ppmtopuzz |
convert a PPM image to an X11 "puzzle" file |
ppmtorgb3 |
separate a PPM image into three PGMs |
ppmtosixel |
convert a PPM image to DEC sixel format |
ppmtospu |
convert a PPM image to an Atari Spectrum 512 image |
ppmtoterm |
convert a PPM image to a ANSI ISO 6429 ascii image |
ppmtotga |
replaced by pamtotga |
ppmtouil |
replaced by pamtouil |
ppmtowinicon |
convert PPM image into a Windows .ico file |
ppmtoxpm |
convert a PPM image to an X11 pixmap |
ppmtoyuv |
convert a PPM image to an Abekas YUV file |
ppmtoyuvsplit |
convert a PPM image to 3 subsampled raw YUV files |
ppmtv |
make a PPM image look like taken from an American TV |
ppmwheel |
make a PPM image of a color wheel |
psidtopgm |
convert PostScript "image" data to a PGM image |
pstopnm |
convert a PostScript file to a PNM image |
qoitopam |
Convert QOI format (Quite OK Image format) to Netpbm. |
qrttoppm |
convert output from the QRT ray tracer to a PPM image |
rasttopnm |
convert a Sun rasterfile to a PNM image |
rawtopgm |
convert raw grayscale bytes to a PGM image |
rawtoppm |
convert a stream of raw RGB bytes to a PPM image |
rgb3toppm |
combine three PGM images (R, G, B) into one PPM image |
rlatopam |
convert Alias/Wavefront RLA and RPF image files to PAM image files. |
rletopnm |
convert a Utah Raster Tools RLE image file to a PNM image file. |
sbigtopgm |
convert an SBIG CCDOPS file to PGM |
sgitopnm |
convert a SGI image file to PNM |
sirtopnm |
convert a Solitaire file to PNM |
sldtoppm |
convert an AutoCAD slide file to a PPM image |
spctoppm |
convert an Atari compressed Spectrum file to a PPM |
spottopgm |
convert SPOT satellite images to a PGM image |
sputoppm |
convert an Atari uncompressed Spectrum file to a PPM image |
srftopam |
convert a SRF image file to Netpbm images |
st4topgm |
convert an SBIG ST-4 camera file to PGM |
sunicontopnm |
convert a Sun icon into a Netpbm image |
svgtopam |
convert an SVG (Scalable Vector Graphics) image to Netpbm format |
tgatoppm |
convert TrueVision Targa file to a PPM image |
thinkjettopbm |
convert HP ThinkJet printer commands file to PBM |
tifftopnm |
convert a TIFF file into a PNM image |
wbmptopbm |
convert a wireless bitmap (wbmp) file to a PBM |
winicontopam |
convert a Microsoft Windows icon file into a Netpbm PAM file |
winicontoppm |
convert a Windows .ico image into 1 or more PPM images |
xbmtopbm |
convert an X11 or X10 bitmap to a PBM image |
ximtoppm |
convert an Xim file to a PPM image |
xpmtoppm |
convert an X11 pixmap to a PPM image |
xvminitoppm |
convert an XV "thumbnail" picture to PPM |
xwdtopnm |
convert an X11 or X10 window dump file to a PNM image |
ybmtopbm |
convert a Bennet Yee "face" file to PBM |
yuvsplittoppm |
convert separate Y, U, and V files into a PPM image |
yuvtoppm |
convert Abekas YUV bytes to PPM |
yuy2topam |
convert YUY2 bytes to PAM |
zeisstopnm |
convert a Zeiss confocal file to PNM |
netpbm.pc |
Graphics utilities |
Notes
make package assembles the build in $SRC_ROOT/netpbm-pkg, and build.sh copies its parts into $PKG by hand: bin and the libraries, the sharedlink and staticlink development links, the headers, and misc (with rgb.txt) into /usr/share/netpbm. The package directory holds only a pkgconfig_template, which Netpbm’s interactive installnetpbm script fills in; build.sh does not run that script, so it writes netpbm.pc itself.
Netpbm’s licence texts are not at the top of the source, where kpkg collects them, so build.sh installs them into /usr/share/licenses/netpbm: the IJG, GPL and LGPL texts from doc/, and, because the BSD-3-Clause text is only in source headers, the copyright comment of each BSD-licensed source file as BSD-<file>.
The manual pages are generated from the HTML user guide with Netpbm’s own buildtools/makeman, which is why python3 is a build dependency. Every page is converted except the guide’s directory and error pages (directory.html, liberror.html, libnetpbm_dir.html) and the pages of programs this build does not provide: hpcdtoppm (the package carries only a stand-in script that says the real program is distributed separately), ppmsvgalib (no Svgalib) and vidtoppm, which Netpbm never builds. The list also names error.html, which this release’s guide does not carry. The converted index.html becomes netpbm(1).
JBIGLIB is left at its default, so jbigtopnm and pnmtojbig are linked against the copy of libjbig in converter/other/jbig/libjbig, not the jbigkit port.