kopia lustrzana https://gitlab.com/sane-project/website
110 wiersze
5.1 KiB
HTML
110 wiersze
5.1 KiB
HTML
<!-- received="Thu Apr 8 06:18:09 1999 PDT" -->
|
||
<!-- sent="Thu, 8 Apr 1999 09:17:14 -0400 (EDT)" -->
|
||
<!-- name="Raymond A. Ingles" -->
|
||
<!-- email="inglesra@frc.com" -->
|
||
<!-- subject="Scanner -> printer problem" -->
|
||
<!-- id="" -->
|
||
<!-- inreplyto="199904081009.MAA31045@lee.Cc.Uit.No" -->
|
||
<title>sane-devel: Scanner -> printer problem</title>
|
||
<h1>Scanner -> printer problem</h1>
|
||
<b>Raymond A. Ingles</b> (<a href="mailto:inglesra@frc.com"><i>inglesra@frc.com</i></a>)<br>
|
||
<i>Thu, 8 Apr 1999 09:17:14 -0400 (EDT)</i>
|
||
<p>
|
||
<ul>
|
||
<li> <b>Messages sorted by:</b> <a href="date.html#144">[ date ]</a><a href="index.html#144">[ thread ]</a><a href="subject.html#144">[ subject ]</a><a href="author.html#144">[ author ]</a>
|
||
<!-- next="start" -->
|
||
<li> <b>Next message:</b> <a href="0145.html">Andreas Dilger: "Re: Scanner -> printer problem"</a>
|
||
<li> <b>Previous message:</b> <a href="0143.html">Petter Reinholdtsen: "Re: Linking non-libtool libraries into a new backend?"</a>
|
||
<li> <b>In reply to:</b> <a href="0143.html">Petter Reinholdtsen: "Re: Linking non-libtool libraries into a new backend?"</a>
|
||
<!-- nextthread="start" -->
|
||
<li> <b>Next in thread:</b> <a href="0146.html">Oliver Rauch: "Re: Scanner -> printer problem"</a>
|
||
<li> <b>Reply:</b> <a href="0146.html">Oliver Rauch: "Re: Scanner -> printer problem"</a>
|
||
<li> <b>Reply:</b> <a href="0163.html">Dr. Andreas Bolsch: "Re: Scanner -> printer problem"</a>
|
||
<!-- reply="end" -->
|
||
</ul>
|
||
<!-- body="start" -->
|
||
I've been trying for a while to get my scanner and printer to cooperate<br>
|
||
and act like a copy machine. I've got a small script that I've hacked in<br>
|
||
various ways, but no matter what I try, I can't get the scale quite right.<br>
|
||
<p>
|
||
I've got a Mustek scanner that I use with SANE (at 300dpi, lineart mode)<br>
|
||
and an HP DeskJet 600 printer (used at 300dpi again). SANE spits out a<br>
|
||
PPM-format file.<br>
|
||
<p>
|
||
I've tried using "pnmtops" (from the netpbm package) and "convert" (from<br>
|
||
ImageMagick) to produce a postscript file that then goes through<br>
|
||
magicfilter. I *thought* I read the man pages appropriately, but the image<br>
|
||
on the paper is not *quite* the same size as the original.<br>
|
||
<p>
|
||
I used a ruler and made centimeter marks on a page, horizontally and<br>
|
||
vertically. When I scan things in, though, I get an image where the<br>
|
||
vertical axis is "squashed" a bit. Instead of 100%x100%, it's more like<br>
|
||
100%x91%.<br>
|
||
<p>
|
||
But that's not the most annoying. Even if I compensate for this, I just<br>
|
||
can *not* get my printer to produce output that matches the input. No<br>
|
||
matter what I do, the "centimeters" on the printed page are either smaller<br>
|
||
or larger than the original. Once, I managed to get the horizontal<br>
|
||
centimeters to match up, but then the vertical axis was squashed.<br>
|
||
<p>
|
||
Anyway here's the 'xerox' script I've tried:<br>
|
||
<p>
|
||
-----------------------------------------------<br>
|
||
#!/bin/sh<br>
|
||
# Device to scan from<br>
|
||
DEV=mustek:/dev/scanner<br>
|
||
# 300 dpi<br>
|
||
RES=300<br>
|
||
# Next 4 measurement are in millimeters<br>
|
||
LEFT=5<br>
|
||
TOP=5<br>
|
||
WIDTH=205<br>
|
||
HEIGHT=255<br>
|
||
# From the pnmtops man page<br>
|
||
SCALE=.25<br>
|
||
# The actual command: scan -> pnmtops -> lpr<br>
|
||
scanimage -d ${DEV} -l ${LEFT} -t ${TOP} -x ${WIDTH} -y ${HEIGHT} \<br>
|
||
--resolution --mode Lineart ${RES} | \<br>
|
||
pnmtops -dpi 300 -center -rle -scale ${SCALE} | \<br>
|
||
lpr<br>
|
||
-----------------------------------------------<br>
|
||
<p>
|
||
I have also tried things like:<br>
|
||
<p>
|
||
convert -geometry 100%x100%\! -density 300x300 -page 2400x3300+0+0 \<br>
|
||
/tmp/xerox.ppm /tmp/xerox.ps<br>
|
||
lpr /tmp/xerox.ps<br>
|
||
<p>
|
||
Does anyone have any suggestions or ideas on what I might try? I know<br>
|
||
that I'm not going to get a perfect copy, but the divergence I'm seeing is<br>
|
||
really annoying. There are some plans and things I'd like to "xerox" where<br>
|
||
scaling is disastrous. And dang it, it should be possible to get darn<br>
|
||
close with this equipment.<br>
|
||
<p>
|
||
Sincerely,<br>
|
||
<p>
|
||
Ray Ingles (248) 377-7735 <a href="mailto:ray.ingles@fanucrobotics.com">ray.ingles@fanucrobotics.com</a><br>
|
||
<p>
|
||
If all the muscles in your body pulled in the same direction, you<br>
|
||
could lift over twenty tons. But you'd walk funny. - L. M. Boyd<br>
|
||
<p>
|
||
<p>
|
||
<pre>
|
||
--
|
||
Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a>
|
||
To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a>
|
||
</pre>
|
||
<!-- body="end" -->
|
||
<p>
|
||
<ul>
|
||
<!-- next="start" -->
|
||
<li> <b>Next message:</b> <a href="0145.html">Andreas Dilger: "Re: Scanner -> printer problem"</a>
|
||
<li> <b>Previous message:</b> <a href="0143.html">Petter Reinholdtsen: "Re: Linking non-libtool libraries into a new backend?"</a>
|
||
<li> <b>In reply to:</b> <a href="0143.html">Petter Reinholdtsen: "Re: Linking non-libtool libraries into a new backend?"</a>
|
||
<!-- nextthread="start" -->
|
||
<li> <b>Next in thread:</b> <a href="0146.html">Oliver Rauch: "Re: Scanner -> printer problem"</a>
|
||
<li> <b>Reply:</b> <a href="0146.html">Oliver Rauch: "Re: Scanner -> printer problem"</a>
|
||
<li> <b>Reply:</b> <a href="0163.html">Dr. Andreas Bolsch: "Re: Scanner -> printer problem"</a>
|
||
<!-- reply="end" -->
|
||
</ul>
|