kopia lustrzana https://gitlab.com/sane-project/website
75 wiersze
4.0 KiB
HTML
75 wiersze
4.0 KiB
HTML
<!-- received="Thu Apr 8 08:48:32 1999 PDT" -->
|
|
<!-- sent="Thu, 8 Apr 1999 09:49:35 -0600 (MDT)" -->
|
|
<!-- name="Andreas Dilger" -->
|
|
<!-- email="adilger@enel.ucalgary.ca" -->
|
|
<!-- subject="Re: Scanner -> printer problem" -->
|
|
<!-- id="199904081549.JAA01030@munet-d.enel.ucalgary.ca" -->
|
|
<!-- inreplyto="Pine.GSO.3.95q.990408090541.3897C-100000@jupiter" -->
|
|
<title>sane-devel: Re: Scanner -> printer problem</title>
|
|
<h1>Re: Scanner -> printer problem</h1>
|
|
<b>Andreas Dilger</b> (<a href="mailto:adilger@enel.ucalgary.ca"><i>adilger@enel.ucalgary.ca</i></a>)<br>
|
|
<i>Thu, 8 Apr 1999 09:49:35 -0600 (MDT)</i>
|
|
<p>
|
|
<ul>
|
|
<li> <b>Messages sorted by:</b> <a href="date.html#145">[ date ]</a><a href="index.html#145">[ thread ]</a><a href="subject.html#145">[ subject ]</a><a href="author.html#145">[ author ]</a>
|
|
<!-- next="start" -->
|
|
<li> <b>Next message:</b> <a href="0146.html">Oliver Rauch: "Re: Scanner -> printer problem"</a>
|
|
<li> <b>Previous message:</b> <a href="0144.html">Raymond A. Ingles: "Scanner -> printer problem"</a>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
</ul>
|
|
<!-- body="start" -->
|
|
You write:<br>
|
|
<i>> I've got a Mustek scanner that I use with SANE (at 300dpi, lineart mode)</i><br>
|
|
<i>> and an HP DeskJet 600 printer (used at 300dpi again). SANE spits out a</i><br>
|
|
<i>> PPM-format file.</i><br>
|
|
<i>> </i><br>
|
|
<i>> I've tried using "pnmtops" (from the netpbm package) and "convert" (from</i><br>
|
|
<i>> ImageMagick) to produce a postscript file that then goes through</i><br>
|
|
<i>> magicfilter. I *thought* I read the man pages appropriately, but the image</i><br>
|
|
<i>> on the paper is not *quite* the same size as the original.</i><br>
|
|
<p>
|
|
I would avoid the entire ppm->ps->pcl conversion step, since it is possible<br>
|
|
to confuse things with the multiple conversions. I'm pretty sure there is<br>
|
|
a pbm->pcl filter (pbmtolj), that I use with sendfax, but it may<br>
|
|
even be part of the normal netpbm tools. I had set up my magicfilter to<br>
|
|
use this instead of going to PS, and then having ghostscript convert back<br>
|
|
to raster, because it uses a lot of memory + CPU, and I didn't have a fast<br>
|
|
machine back then. Here are the relevant lines in my filter file:<br>
|
|
<p>
|
|
0 P1\n pipe /usr/local/bin/netpbm/pbmtolj -resoution 300 2> /dev/null<br>
|
|
0 P2\n pipe /usr/local/bin/netpbm/pgmtopbm 2>/dev/null<br>
|
|
0 P3\n pipe /usr/local/bin/netpbm/ppmtopgm 2>/dev/null<br>
|
|
0 P4\n pipe /usr/local/bin/netpbm/pbmtolj -resolution 300 2> /dev/null<br>
|
|
0 P5\n pipe /usr/local/bin/netpbm/pgmtopbm 2>/dev/null<br>
|
|
0 P6\n pipe /usr/local/bin/netpbm/ppmtopgm 2>/dev/null<br>
|
|
<p>
|
|
As you can see, it converts color/grayscale to b&w first, and then prints.<br>
|
|
Now, this works fine with my LaserJet, but I'm not 100% sure on the DeskJet<br>
|
|
if it supports PCL. If it doesn't, you may need to use a different back-end,<br>
|
|
but it is relatively easy to do, since the data is guaranteed to be in raster<br>
|
|
format, which the printer can handle, with a few codes.<br>
|
|
<p>
|
|
Cheers, Andreas<br>
|
|
<pre>
|
|
--
|
|
Andreas Dilger University of Calgary \"If a man ate a pound of pasta and
|
|
Micronet Research Group \ a pound of antipasto, would they
|
|
Dept of Electrical & Computer Engineering \ cancel out, leaving him still
|
|
<a href="http://www-mddsp.enel.ucalgary.ca/People/adilger/">http://www-mddsp.enel.ucalgary.ca/People/adilger/</a> hungry?" -- Dogbert
|
|
<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="0146.html">Oliver Rauch: "Re: Scanner -> printer problem"</a>
|
|
<li> <b>Previous message:</b> <a href="0144.html">Raymond A. Ingles: "Scanner -> printer problem"</a>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
</ul>
|