Yahoo Groups archive

Digital BW, The Print

Index last updated: 2026-04-28 22:56 UTC

Message

Linux QTR script (qpr)

2003-11-03 by David Wroblewski

For Linux QTR users:

I've asked Martin to post a bash script in the files section 
called qpr. To get it, go to the files section and download:

 QuadTone Rip>QuadTone Rip & Linux>Linux QTR Script(qpr).zip

The script allows one to print images from the Linux command 
line. Once invoked with

 qpr <image file>

it polls the size and bit depth of the image using the 
"identify" command and then queries on the terminal for the print
parameters. When it has finished it presents an "lpr" command
for examination and execution, which you can then approve or 
cancel. It does some basic error checking: if the image will 
exceed the bounds of the page or isn't an 8 bit file you are
notified. 

I like printing this way because once the lpr command is 
generated, I can cut and paste it into a file and keep it along
with the image, so I don't have to remember what options I 
selected in graphical programs like qtcups.

In order for it to work, you need to use the bash shell, and
have the 'identify' program installed on your system from the
ImageMagick package (which was in the Redhat 9 distribution.) 
The script checks for this program first thing, so if you don't
have it installed, it'll tell you. 

Linux newbies should remember that you must enable execute 
permission on the file with "chmod a+x qpr" once you've downloaded
it and put it somewhere on your path.

Enjoy,
David

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.