Linux Commands Examples

A great documentation place for Linux commands

pnmcat

concatenate portable anymaps


see also : pamdice - pnmtile - pamcut

Synopsis

pnmcat [-white|-black] -leftright|-lr [-jtop|-jbottom] pnmfile pnmfile ...
pnmcat
[-white|-black] -topbottom|-tb [-jleft|-jright] pnmfile pnmfile ...


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
done
pnmcat -tb ${WORK} > ${WORKSPACE}row-${ROW}.pnm
done
WORK= " "
for ROW in $(seq 0 ${HEIGHT});
do
done
pnmcat -lr ${WORKSPACE}${WORK} > out.pnm
rm ${WORKSPACE}/*.pnm
rmdir ${WORKSPACE}
0
source
            
pbmtext "$i" | pnmcat $back -tb $tmpfile - > $imagefile
else
pbmtext "$i" | pnminvert | pnmcat $back -tb $tmpfile - > $imagefile
pnmcat $back -lr -jbottom ${imagefiles[*]} > $rowfile
else
pnmcat $back -lr -jbottom ${imagefiles[*]} | \
0
source
            
pnmscale 4 < frame_small.ppm > frame_big.ppm
pnmcat -tb frame_small.ppm label_small.ppm > frame_labeled_small.ppm
pnmcat -tb frame_big.ppm label_big.ppm > frame_labeled_big.ppm
0
source
            
pnmcat -lr all.pnm vmax.pnm > l
pnmcat -lr vint.pnm vmin.pnm > r
pnmcat -lr l r | pnmtopng > ${group}-$f.png
done
pnmcat -tb g1-fluidized.pnm g2-undeformed.pnm > t1 || die $LINENO
pnmcat -tb g3-sheared.pnm g4-little-def.pnm > t2 || die $LINENO

description

Reads portable anymaps as input. Concatenates them either left to right or top to bottom, and produces a portable anymap as output.

pamdice splits an image up into smaller ones.

pnmtile concatenates a single input image to itself repeatedly.

options

If the anymaps are not all the same height (left-right) or width (top-bottom), the smaller ones have to be justified with the largest. By default, they get centered, but you can specify one side or the other with one of the -j* flags. So, -topbottom -jleft would stack the anymaps on top of each other, flush with the left edge.

The -white and -black flags specify what color to use to fill in the extra space when doing this justification. If neither is specified, the program makes a guess.

All flags can be abbreviated to their shortest unique prefix.


see also

pamdice , pnmtile , pamcut , pnm


author

Copyright (C) 1989 by Jef Poskanzer.

How can this site be more helpful to YOU ?


give  feedback