home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega A/V
/
mega_av.zip
/
mega_av
/
GRAPHUTL
/
PBMPLUS.ZIP
/
_PPMQUAN.MAN
next >
Wrap
Text File
|
1991-08-11
|
2KB
|
67 lines
ppmquantall(1) Unix Programmer's Manual ppmquantall(1)
NNNAAAMMMEEE
ppmquantall - run ppmquant on a bunch of files all at once, so they share
a common colormap
SSSYYYNNNOOOPPPSSSIIISSS
ppppppmmmqqquuuaaannntttaaallllll _n_c_o_l_o_r_s _p_p_m_f_i_l_e ...
DDDEEESSSCCCRRRIIIPPPTTTIIIOOONNN
Takes a bunch of portable pixmap as input. Chooses _n_c_o_l_o_r_s colors to
best represent all of the images, maps the existing colors to the new
ones, and ooovvveeerrrwwwrrriiittteeesss ttthhheee iiinnnpppuuuttt fffiiillleeesss with the new quantized versions.
Verbose explanation: Let's say you've got a dozen pixmaps that you want
to display on the screen all at the same time. Your screen can only
display 256 different colors, but the pixmaps have a total of a thousand
or so different colors. For a single pixmap you solve this problem with
_p_p_m_q_u_a_n_t; this script solves it for multiple pixmaps. All it does is
concatenate them together into one big pixmap, run _p_p_m_q_u_a_n_t on that, and
then split it up into little pixmaps again.
(Note that another way to solve this problem is to pre-select a set of
colors and then use _p_p_m_q_u_a_n_t's ---mmmaaappp option to separately quantize each
pixmap to that set.)
SSSEEEEEE AAALLLSSSOOO
ppmquant(1), ppm(5)
BBBUUUGGGSSS
It's a csh script. Csh scripts are not portable to System V. Scripts in
general are not portable to non-Unix environments.
AAAUUUTTTHHHOOORRR
Copyright (C) 1991 by Jef Poskanzer.
27 July 1990 1