Advertisement
Guest User

alpha compositing: nupmy vs pure PIL

a guest
Feb 7th, 2012
862
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. $ python -m timeit "import Image; from apps.front import utils; i = Image.open(u'logo.png'); i2 = utils.alpha_composite_with_color(i)"
  2. 10 loops, best of 3: 8.92 msec per loop
  3.  
  4. $ python -m timeit "import Image; from apps.front import utils; i = Image.open(u'logo.png'); i2 = utils.pure_pil_composite(i)"
  5. 10 loops, best of 3: 79.7 msec per loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement