Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
pnmdepth(1)
Edit
PageHistory
Diff
Info
LikePages
pnmdepth !!!pnmdepth NAME SYNOPSIS DESCRIPTION SEE ALSO AUTHOR ---- !!NAME pnmdepth - change the maxval in a portable anymap !!SYNOPSIS __pnmdepth__ ''newmaxval'' [[''pnmfile''] !!DESCRIPTION Reads a portable anymap as input. Scales all the pixel values, and writes out the image with the new maxval. Scaling the colors down to a smaller maxval will result in some loss of information. Be careful of off-by-one errors when choosing the new maxval. For instance, if you want the color values to be five bits wide, use a maxval of 31, not 32. One important use of __pnmdepth__ is to convert a new format 2-byte-per-sample PNM file to the older 1-byte-per-sample format. Before April 2000, essentially all raw (binary) format PNM files had a maxval less than 256 and one byte per sample, and many programs may rely on that. If you specify a ''newmaxval'' less than 256, the resulting file should be readable by any program that worked with PNM files before April 2000. !!SEE ALSO pnm(5), ppmquant(1), ppmdither(1) !!AUTHOR Copyright (C) 1989, 1991 by Jef Poskanzer. ----
12 pages link to
pnmdepth(1)
:
pbmfilters(1)
pgmtoppm(1)
pnmtotiff(1)
ppmtopj(1)
jpegtopnm(1)
pgmedge(1)
pnm(5)
pnmhisteq(1)
ppmdither(1)
ppmforge(1)
ppmquant(1)
Man1p
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.