By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,048 Members | 1,066 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,048 IT Pros & Developers. It's quick & easy.

aggdraw for PIL

P: n/a
Does anyone know anything about the aggdraw module for PIL? I think I
would like to use it because I need to do some drawing with
semi-transparent pen styles (I'm simulating using a highlighter). It
seems to be working great, but I think I'm running into a memory leak
that's noted in the documentation at
http://effbot.org/zone/pythondoc-agg...raw.Draw-class

"Note: The Draw(im) form leaks memory in aggdraw 1.1b1 and earlier.
Don't use this form in long-running program that creates multiple
drawings. The memory leak has been fixed in release 1.1b2."

Sounds good, except I can't find 1.1b2 anywhere. Is it not released
yet? If so, does anyone know when it might be released?

Aug 31 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Adam Endicott wrote:
Does anyone know anything about the aggdraw module for PIL? I think I
would like to use it because I need to do some drawing with
semi-transparent pen styles (I'm simulating using a highlighter). It
seems to be working great, but I think I'm running into a memory leak
that's noted in the documentation at
http://effbot.org/zone/pythondoc-agg...raw.Draw-class

"Note: The Draw(im) form leaks memory in aggdraw 1.1b1 and earlier.
Don't use this form in long-running program that creates multiple
drawings. The memory leak has been fixed in release 1.1b2."
as a workaround, you can use the original constructor syntax instead,
together with fromstring/tostring:

d = Draw(im.mode, im.size)
d.fromstring(im.tostring())

# draw your stuff

im.fromstring(d.tostring())
Sounds good, except I can't find 1.1b2 anywhere. Is it not released
yet? If so, does anyone know when it might be released?


it has been delayed, but it should appear within a week or two.

</F>

Aug 31 '05 #2

P: n/a
You know, I tried doing it that way, and I must have done something
wrong the first time because I was getting an error. It works now
though, and it performs much better. Thanks!

I'll keep an eye out for the new version, that kind of timeframe will
be in plenty of time for the project I'm currently doing.

Aug 31 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.