Christopher Barker wrote:
> John Barratt wrote:
>> I've had a need to do some optimisation of some low level pixel setting
>> code, and have as such done some tests of different ways of doing this
>> using PIL and alternatively with gd via ctypes.
>
> Have you tried using PIL + numpy -- you
With prompting from Chris, and a little further work in gd, I have
updated this comparison further, adding a further gd/ctypes test, this
time setting pixel values using the raw pixel data, as well as the start
of a test for a numpy/PIL option. Unfortunately it doesn't fully work,
at least wit
When you install PIL via easy_install, you cannot import from the PIL
module. Is this a bug in PIL or in code that tries to import "from PIL"?
>>> import PIL
Traceback (most recent call last):
File "", line 1, in ?
ImportError: No module named PIL
>>> import Image #no error
This is h
hi John,
> Method Time (s)Times slower than fastest
> +-+ +---+ ++
> ctypes,c,GD raw 0.00082 1.0
> ctypes,c,GD 0.00177 2.2
> PIL - 'load'0.03226 39.4
> ctypes, GD 0.14428 176.4
> PIL, num
Hi Douglas,
Douglas Bagnall wrote:
>> Method Time (s)Times slower than fastest
>> +-+ +---+ ++
>> ctypes,c,GD raw 0.00082 1.0
>> ctypes,c,GD 0.00177 2.2
>> PIL - 'load'0.03226 39.4
>> ctypes, GD 0