Is there a way to print images in UNIX via the command line? Is there some preprocessing required to do something like lpr image.tff?
I've seached on here and see an unanswered request to this in the past...
Any suggestions??
Thanks in advance
Printing images through lpr
Re: Printing images through lpr
The lpr command should work fine. It generally contains filters to automatically convert most image formats to the output language of your printer. Its possible you may need a modern version of Linux which better supports a variety of image formats and printer models.
Re: Printing images through lpr
Thanks. My system Tru64 V5.1b does have the filters for the printer, just that I'm not sure about it's configuration.
I'm testing with HP LaserJet 4350. When I try to print the file, i get the ascii equivalent.
Here's my printcap file.
lp|lp0|0|laser:\
:af=/usr/adm/lpacct:\
:if=/usr/lbin/ppdof +OPageSize=Letter +Chplj4350.rpd:\
:lf=/usr/adm/lp0err:\
:lp=@idt-103/HP-HRES:\
:mx#0:\
f=/usr/lbin/ppdof +OPageSize=Letter +Chplj4350.rpd:\
:pl#66:\
:pw#0:\
:rw:\
:sd=/usr/spool/lpd0:\
f=/usr/lbin/xf:
Should I be setting any particular switches?
N.B. I can print ok when I use display. What I'm looking for is to be able to print by the command line.
Robert
I'm testing with HP LaserJet 4350. When I try to print the file, i get the ascii equivalent.
Here's my printcap file.
lp|lp0|0|laser:\
:af=/usr/adm/lpacct:\
:if=/usr/lbin/ppdof +OPageSize=Letter +Chplj4350.rpd:\
:lf=/usr/adm/lp0err:\
:lp=@idt-103/HP-HRES:\
:mx#0:\
f=/usr/lbin/ppdof +OPageSize=Letter +Chplj4350.rpd:\
:pl#66:\
:pw#0:\
:rw:\
:sd=/usr/spool/lpd0:\
f=/usr/lbin/xf:
Should I be setting any particular switches?
N.B. I can print ok when I use display. What I'm looking for is to be able to print by the command line.
Robert
Re: Printing images through lpr
This forum is about ImageMagick, not Unix printing. If you have a specific question about ImageMagick, let us know.
Re: Printing images through lpr
Thanks...and I realize that and make apologies for any perceived tangent. My goal is to get the IM rendered images printed and was just wondering if this was possible through IM and/or any of it's utilities in a UNIX environment.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Printing images through lpr
If your lpr command understand postscript but nor images directly you could try...
It should work, though I don't use it, prefering to print using a non-IM image viewer. Or taking the images via USB stick to a photo lab for high quality printing.
Code: Select all
convert image .... -page A4 ps:- | lpr -
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/