[Image-SIG] problem with PIDDLE and PIL

Jeffrey Kunce kuncej@mail.conservation.state.mo.us
Fri, 04 Feb 2000 12:53:34 -0600


>When installing PIDDLE and running its built-in test suite, I encountered
>an error Traceback from within PIL (VERSION=3D1.0):

The below is from the piddle mailing list archives=20
(http://www.egroups.com/group/pythonpiddle).=20
I think it will fix your problem.

  --Jeff

---------------------------------------------------------------------------=
---------------------------------

Hey all,

I just discovered Piddle, and decided to use it to help manage my site..
I need a bunch of simple graphics to all look alike, but use different
colors.. I tried using PIL, but the docs just didn't suit my needs..
Then
I found Piddle, and it rocks.. so thanks!

I hope this is the right place to put this.. If not, sorry. :)
I've got a *very* minor patch to piddlePIL.py... starting line 246:

			if Image.VERSION <=3D "1.0":
				self._pen.line( ((x1,y1), (x2,y2)) )=09
			elif Image.VERSION <=3D "1.0b1":
				self._pen.line( (x1,y1), (x2,y2) )
			else:
				self._pen.line(x1,y1,x2,y2)

... basically, PIL version 1.0 changed (again) the way they do line
coordinates, and this prevented you from drawing lines or outlines
if you had that version of PIL. This seems to fix it..

-Michal
http://www.linkwatcher.com/metalog/