Linux Commands Examples

A great documentation place for Linux commands

pnmtoplainpnm

convert portable any map to plain (ASCII) anymap format

Synopsis

pnmtoplainpnm [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
            
echo " " | pbmtext | pnmtoplainpnm | ./pbm2lwxl 600 300 | lpr -P DYMO_LabelWriter_450_Turbo -o raw
0
source
            
pngtopnm $1 > tmp.pnm
pnmquant 224 tmp.pnm > tmp1.pnm
pnmtoplainpnm tmp1.pnm > logo_linux_clut224.ppm
rm *.pnm
0
source
            
PBM=${i%png}pbm
TEXT=${i%png}txt
convert "$i" "$PBM"
pnmtoplainpnm $PBM > tmp
../../gen2svm/gen2svm "$TEXT" tmp >> ../"$TSET"
0
source
            
jpegtopnm $x 2> /dev/null | pnmtoplainpnm | gzip -9 > $2.gz.$count
export count=$(($count+1))
done
rm -rf movie-*
tar cp $2.gz.* | gzip -9 > $2.tgz
rm -rf $2.gz.*

description

Reads a portable anymap as input, either from the named file or if no file named, from Standard Input. Writes out the image in plain (ASCII) anymap format to Standard Output. Of the three plain anymap formats, this program generates the one that corresponds naturally to the one of the three anymap formats that is the input (PBM for PBM, etc.).


see also

pnm

How can this site be more helpful to YOU ?


give  feedback