Pilprint

C

Chris Jankowski

I am a newbie to the world of Python and trying to print some
images(.tif). I have installed the PIL Library and can use the some
of the fuctions like: m.format, im.size, im.mode without any problem.
When I try to use the Tools like pilprint and pilfile, I can't seem to
get them to work. Any help would be greatly appreciated.

Examples:Traceback ( File "<interactive input>", line 1
pilprint 'c:/chris.TIF'
^
SyntaxError: invalid syntax

Thanks,

Chris J.
 
F

Fredrik Lundh

Chris said:
I am a newbie to the world of Python and trying to print some
images(.tif). I have installed the PIL Library and can use the some
of the fuctions like: m.format, im.size, im.mode without any problem.
When I try to use the Tools like pilprint and pilfile, I can't seem to
get them to work. Any help would be greatly appreciated.

Examples:
Traceback ( File "<interactive input>", line 1
pilprint 'c:/chris.TIF'
^
SyntaxError: invalid syntax

pilprint (etc) are programs, not Python statements. you're supposed
to run them from the standard command line, not Python's interactive
prompt.

depending on your operating system, and how things are set up, some
of these should work:

pilprint.py c:/chris.tif
python pilprint.py c:/chris.tif
pilprint c:/chris.tif

</F>
 
C

Chris Jankowski

Fredrik Lundh said:
pilprint (etc) are programs, not Python statements. you're supposed
to run them from the standard command line, not Python's interactive
prompt.

depending on your operating system, and how things are set up, some
of these should work:

pilprint.py c:/chris.tif
python pilprint.py c:/chris.tif
pilprint c:/chris.tif

</F>

Thanks, I got it to run, but now I have a Broken Pipe Error. Any
ideas? We are using a network printer. Would that have anything to
do with it? Also, I got an error message about not supporting group
4, when I tried it with a .tif image, are they supported?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,297
Messages
2,571,525
Members
48,248
Latest member
LouveniaUc

Latest Threads

Top