Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Printing of Image Files

0 views
Skip to first unread message

DL

unread,
Nov 1, 2002, 11:35:04 AM11/1/02
to
Anyone know of a way to printer image files (ie a Company Logo) to a
Standard HP Laserjet via ' lp ' ?

Do I need to convert the image (.jpg in this case) to PCL for the
Printer?


Jean-Pierre Radley

unread,
Nov 1, 2002, 12:27:26 PM11/1/02
to ScoMisc [c.u.s.m]
DL propounded (on Fri, Nov 01, 2002 at 11:35:04AM -0500):

Yes.

I just now opened a .jpeg with xv, saved it as postscript, then printed
that using ghostscript.

--
JP

Fabio Giannotti

unread,
Nov 1, 2002, 12:41:01 PM11/1/02
to Scomsc (E-mail)

I think you can use imagemagic (available on the skunkware site) to convert
the jpg to a postscript file (and maybe even a PCL file), then raw print the
file.

Fabio

Jean-Pierre Radley

unread,
Nov 1, 2002, 1:01:17 PM11/1/02
to ScoMisc [c.u.s.m]
Fabio Giannotti propounded (on Fri, Nov 01, 2002 at 05:41:01PM +0000):

I tried ImageMagick's convert to write out a PCL file, but the result was
very poor.

Using xv and gs worked quite well.

--
JP

Tom Parsons

unread,
Nov 1, 2002, 1:03:54 PM11/1/02
to sco...@xenitec.on.ca
Jean-Pierre Radley enscribed:

I'm finally gonna get you for the excessive keystoke award.

I opened the file with xv, clicked on print, entered the name of the
printer that pipes the print job through gs.

# cat /usr/spool/lp/admins/lp/interfaces/gs
:
# @(#) gs
PATH=$PATH:/usr/local/bin
gs -q -sDEVICE=laserjet -dNOPAUSE -sOutputFile=- "$6" -c quit | lp -o raw -o -d laser1
exit 0

--
==========================================================================
Tom Parsons t...@tegan.com
==========================================================================

Jean-Pierre Radley

unread,
Nov 1, 2002, 1:15:12 PM11/1/02
to ScoMisc [c.u.s.m]
Tom Parsons propounded (on Fri, Nov 01, 2002 at 06:03:54PM +0000):

| Jean-Pierre Radley enscribed:
| | DL propounded (on Fri, Nov 01, 2002 at 11:35:04AM -0500):
| | | Anyone know of a way to printer image files (ie a Company Logo) to a
| | | Standard HP Laserjet via ' lp ' ?
| | |
| | | Do I need to convert the image (.jpg in this case) to PCL for the
| | | Printer?
| |
| | Yes.
| |
| | I just now opened a .jpeg with xv, saved it as postscript, then printed
| | that using ghostscript.
|
| I'm finally gonna get you for the excessive keystoke award.

OK, I'm caught out!

| I opened the file with xv, clicked on print, entered the name of the
| printer that pipes the print job through gs.
|
| # cat /usr/spool/lp/admins/lp/interfaces/gs
| :
| # @(#) gs
| PATH=$PATH:/usr/local/bin
| gs -q -sDEVICE=laserjet -dNOPAUSE -sOutputFile=- "$6" -c quit | lp -o raw -o -d laser1
| exit 0

What's the second '-o' for?

I do it a bit differently; instead of an interface script, I've
got /usr/local/bin/gslp:

#!/bin/sh
# @(#) gslp
gs -q -sDEVICE=djet500 -dNOPAUSE -sOutputFile=- ${@:--} -c quit | lp -og -s

--
JP

Tom Parsons

unread,
Nov 1, 2002, 1:45:25 PM11/1/02
to sco...@xenitec.on.ca
Jean-Pierre Radley enscribed:

| Tom Parsons propounded (on Fri, Nov 01, 2002 at 06:03:54PM +0000):
| | Jean-Pierre Radley enscribed:
| | | DL propounded (on Fri, Nov 01, 2002 at 11:35:04AM -0500):
| | | | Anyone know of a way to printer image files (ie a Company Logo) to a
| | | | Standard HP Laserjet via ' lp ' ?
| | | |
| | | | Do I need to convert the image (.jpg in this case) to PCL for the
| | | | Printer?
| | |
| | | Yes.
| | |
| | | I just now opened a .jpeg with xv, saved it as postscript, then printed
| | | that using ghostscript.
| |
| | I'm finally gonna get you for the excessive keystoke award.
|
| OK, I'm caught out!
|
| | I opened the file with xv, clicked on print, entered the name of the
| | printer that pipes the print job through gs.
| |
| | # cat /usr/spool/lp/admins/lp/interfaces/gs
| | :
| | # @(#) gs
| | PATH=$PATH:/usr/local/bin
| | gs -q -sDEVICE=laserjet -dNOPAUSE -sOutputFile=- "$6" -c quit | lp -o raw -o -d laser1
| | exit 0
|
| What's the second '-o' for?

The dreaded editing of a script before posting. My script has -o lm9
because my standard paper is pre-punched with 3 holes. I removed only
the lm9

0 new messages