From: mirtchov@cpsc.ucalgary.ca
To: 9fans@cse.psu.edu
Subject: [9fans] cjpeg/djpeg
Date: Thu, 11 Dec 2003 09:11:51 -0700 [thread overview]
Message-ID: <cdf5fc1417df40ec871c0535e90197ec@plan9.ucalgary.ca> (raw)
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
reply other threads:[~2003-12-11 16:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cdf5fc1417df40ec871c0535e90197ec@plan9.ucalgary.ca \
--to=mirtchov@cpsc.ucalgary.ca \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).