[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Fri Jan 16 22:15:58 2004 -->
- <!--x-from-r13: wbuazvyyf ng fcrnxrnfl.arg (Xbua [vyyf) -->
- <!--x-message-id: Pine.LNX.4.44.0401162156510.6067-[email protected] -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] Setting up pseudo-printer -->
- <li><em>date</em>: Fri Jan 16 22:15:58 2004</li>
- <li><em>from</em>: johnmills at speakeasy.net (John Mills)</li>
- <li><em>in-reply-to</em>: <<a href="msg00645.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] Setting up pseudo-printer</li>
Thanks very much for your note and suggestions.
On Fri, 16 Jan 2004, Dow Hurst wrote:
[...]
> However, even the lp system can use filters, so a little
> searching might find a HOWTO on setting a filter that would
> do what you want. The Netpbm library is a powerful package
> for converting image files. I looked at a tiff2ps package
> that looked very nice. I don't have the link for that with me.
> Am I understanding the question correctly? Which is that
> you want to print an image? Gimp will print images
> fantastically after you set it up for your printer.
I guess my question was too indirect or not well put. I have a short
script that decodes a text-encoded image file (typically a JPEG) and pipes
it to 'display' which puts it on my screen. I could use any utility that
could accept an image format at <stdin>; I just happen to be using
'display'. This is exactly what I want it to do as though it were a
printer.
My question is:
How can I access this script so that 'lpr' will _use_it_ as though it
were a printer. I want to invoke 'lpr -P viewer <file>' on the text file
and just _see_ the image on the screen. No printed copy at all.
I was trying to put my script as a processing filter (a'la _ghostscript_)
with its text output (and errors) going to /dev/null, and its graphic
output going transparently to the screen. The problem must be analogous to
putting a printer filter on a stream being sent to a remote printer,
except that text output is sent to /dev/null and the image is
transparently redirected to the screen.
Any ideas?
> John Mills wrote:
> > I have a script to pipe through a decoding filter, and uses 'display' to
> > show an image on the screen. For example, I can show an image with:
> > % cat <encoded_jpeg_file> | /usr/local/bin/viewer_filter
> > I'm having some trouble setting this up as a printer, so that I could
> > invoke it with [say]:
> > % lpr -P viewer <encoded_jpeg_file>
TIA.
- John Mills
john.m.mills at alum.mit.edu
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00744" href="msg00744.html">[ale] Setting up pseudo-printer</a></strong>
<ul><li><em>From:</em> dhurst at kennesaw.edu (Dow Hurst)</li></ul></li>
<li><strong><a name="00745" href="msg00745.html">[ale] Setting up pseudo-printer</a></strong>
<ul><li><em>From:</em> dhurst at kennesaw.edu (Dow Hurst)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00645" href="msg00645.html">[ale] Setting up pseudo-printer</a></strong>
<ul><li><em>From:</em> dhurst at kennesaw.edu (Dow Hurst)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00661.html">[ale] Open Source Apps</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00663.html">[ale] Open Source Apps</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00645.html">[ale] Setting up pseudo-printer</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00744.html">[ale] Setting up pseudo-printer</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00662"><strong>Date</strong></a></li>
<li><a href="threads.html#00662"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>