kopia lustrzana https://gitlab.com/sane-project/website
58 wiersze
2.2 KiB
HTML
58 wiersze
2.2 KiB
HTML
<!-- received="Fri Jul 18 18:02:22 1997 MST" -->
|
|
<!-- sent="Fri, 18 Jul 1997 17:08:41 -0700" -->
|
|
<!-- name="David Mosberger-Tang" -->
|
|
<!-- email="davidm@azstarnet.com" -->
|
|
<!-- subject="handy script" -->
|
|
<!-- id="199707190008.RAA00642@panda.mosberger" -->
|
|
<!-- inreplyto="" -->
|
|
<title>sane-devel: handy script</title>
|
|
<h1>handy script</h1>
|
|
<b>David Mosberger-Tang</b> (<a href="mailto:davidm@azstarnet.com"><i>davidm@azstarnet.com</i></a>)<br>
|
|
<i>Fri, 18 Jul 1997 17:08:41 -0700</i>
|
|
<p>
|
|
<ul>
|
|
<li> <b>Messages sorted by:</b> <a href="date.html#95">[ date ]</a><a href="index.html#95">[ thread ]</a><a href="subject.html#95">[ subject ]</a><a href="author.html#95">[ author ]</a>
|
|
<!-- next="start" -->
|
|
<li> <b>Next message:</b> <a href="0096.html">Kolja Waschk: "mustek: timeout after scan"</a>
|
|
<li> <b>Previous message:</b> <a href="0094.html">David Mosberger-Tang: "3-pass code: important bug fix!"</a>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
</ul>
|
|
<!-- body="start" -->
|
|
Here is a little script I find handy to make photocopies using a<br>
|
|
scanner and a printer. I call it "xerox" and by invoking it, the<br>
|
|
image in my Mustek scanner gets scanned and then printed on my<br>
|
|
DeskJet. The print quality isn't great, but it's neat, still. You<br>
|
|
obviously may want to tune the first four parameters to your<br>
|
|
environment.<br>
|
|
<p>
|
|
--david<br>
|
|
<p>
|
|
#!/bin/sh<br>
|
|
DEV=mustek:/dev/scanner<br>
|
|
RES=300<br>
|
|
WIDTH=8 # inches<br>
|
|
HEIGHT=10 # inches<br>
|
|
#<br>
|
|
SCALE=`bc <<_EOF_<br>
|
|
scale=3<br>
|
|
72/${RES}<br>
|
|
_EOF_`<br>
|
|
scanimage -d $DEV -x ${WIDTH}\" -y ${HEIGHT}\" --resolution ${RES} | \<br>
|
|
pnmtops -center -rle -scale ${SCALE} | lpr<br>
|
|
<p>
|
|
<pre>
|
|
--
|
|
Source code, list archive, and docs: <a href="http://www.azstarnet.com/~axplinux/sane/">http://www.azstarnet.com/~axplinux/sane/</a>
|
|
To unsubscribe: mail -s unsubscribe <a href="mailto:sane-devel-request@listserv.azstarnet.com">sane-devel-request@listserv.azstarnet.com</a>
|
|
</pre>
|
|
<!-- body="end" -->
|
|
<p>
|
|
<ul>
|
|
<!-- next="start" -->
|
|
<li> <b>Next message:</b> <a href="0096.html">Kolja Waschk: "mustek: timeout after scan"</a>
|
|
<li> <b>Previous message:</b> <a href="0094.html">David Mosberger-Tang: "3-pass code: important bug fix!"</a>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
</ul>
|