473,414 Members | 1,737 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Pilprint

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:
pilfile *.tif Traceback ( File "<interactive input>", line 1
pilfile *.tif
pilprint 'c:/chris.TIF'

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

Thanks,

Chris J.
Jul 18 '05 #1
2 1388
Chris Jankowski wrote:
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:
pilfile *.tif Traceback ( File "<interactive input>", line 1
pilfile *.tif
pilprint 'c:/chris.TIF'

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>

Jul 18 '05 #2
"Fredrik Lundh" <fr*****@pythonware.com> wrote in message news:<ma**************************************@pyt hon.org>...
Chris Jankowski wrote:
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:
> pilfile *.tif

Traceback ( File "<interactive input>", line 1
pilfile *.tif
> pilprint 'c:/chris.TIF'

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>


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?
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Chris Jankowski | last post by:
I am trying to print an image file to a network printer and getting the following error. This is a Windows based system, using a network printer. Any ideas. Error Message: cannot print image...
0
by: Jack Wu | last post by:
Hi I've spent a good majority of my day trying to figure out how to have PIL 1.1.5 working on my OSX 10.3.9_PPC machine. I'm still stuck and I have not gotten anywhere. Could somebody please...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.