[Image-SIG] Does PIL ImageDraw create shape objects or stain pixels?

Edward Cannon edward at unicornschool.org
Wed Nov 2 21:35:18 CET 2011

I have written code that draws maybe 10K objects (circles) on a single
canvas. No real performance issues there at all, at least not in
regards to memory. The bottleneck in my program was another part of
the code, not drawing the shapes so I can't be positive that it is not
slow to draw, but it didn't seem so to me.

On Wed, Nov 2, 2011 at 11:42 AM, James <virtue at rocketmonkeys.com> wrote:
> AFAIK, ImageDraw is a raster-based library, not object or vector
> based.  So I don't think any objects are kept around, and changes
> simply happen to a buffer.  I could be wrong.
> That's not to say there aren't other performance issues to watch out
> for.  But I don't imagine that simply drawing a ton of shapes will
> overload memory in ImageDraw like it would in a lib that saves object
> information.
> -James
> _______________________________________________
> Image-SIG maillist  -  Image-SIG at python.org
> http://mail.python.org/mailman/listinfo/image-sig

More information about the Image-SIG mailing list