[Image-SIG] New patch to PIL

Laszlo Zsolt Nagy gandalf at designaproduct.biz
Mon Sep 19 16:54:06 CEST 2005

Joao S. O. Bueno Calligaris wrote:

>I am no PIL developer - I do n't even recall if I ever even built it 
>at all - but I have some code I wrote a while ago that could do a 
>"generic" combination of two given images, maybe somewhat fast, given 
>a kind of  "bytecode"  representing an algebraic expression to use 
>with the pixels (just like your expression in the "output" of the 
>first e-mail).
>If your improvements is going into pil, maybe it will be worth for 
>everyone consider adding some of that code as well. (So that, for 
>example, any of the GIMP's mare than 20 image combination modes would 
>be available in PIL doing as little as adding a constant bytecode for 
>each mode).
Have you checked the ImageMath module? It is in the upcoming release of PIL.


The problem with it is that it can only process one band images. 
Sometimes split -> imagemath -> merge cannot do what you need.


More information about the Image-SIG mailing list