* [9fans] cjpeg/djpeg
@ 2003-12-11 16:11 mirtchov
0 siblings, 0 replies; only message in thread
From: mirtchov @ 2003-12-11 16:11 UTC (permalink / raw)
To: 9fans
the jpeg library port which comes with the Links package has two
programs, cjpeg and djpeg, whose usefulness I have neglected up until
last night.
the programs are not installed on your system by default, but if you
do a:
cp links-ape/jpeg/8.cjpeg $home/bin/386/
then you can have a very simple 'tojpg' script as follows:
plan9% cat /bin/tojpg
#!/bin/rc
file=''
switch ($#*) {
case 1
file=$1
}
toppm $file | cjpeg
plan9%
or a 'jpg' script that looks like this (after copying the djpeg
binary):
plan9% cat /bin/jpg2
#!/bin/rc
file=''
switch ($#*) {
case 1
file=$1
}
djpeg $file | ppm
plan9%
andrey
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-12-11 16:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-11 16:11 [9fans] cjpeg/djpeg mirtchov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).