wand icon indicating copy to clipboard operation
wand copied to clipboard

PIL compatibility layer

Open dahlia opened this issue 11 years ago • 0 comments

See also the roadmap:

PIL has very long history and the most of Python projects still depend on it. We will work on PIL compatiblity layer using Wand. It will provide two ways to emulate PIL:

  • Module-level compatibility which can be used by changing import:

    try:
       from wand.pilcompat import Image
    except ImportError:
       from PIL import Image
    
  • Global monkeypatcher which changes sys.modules:

    from wand.pilcompat.monkey import patch; patch()
    import PIL.Image  # it imports wand.pilcompat.Image module
    

So, what features does Wand lack while PIL provides?

  • [ ] Image.getbands()
  • [ ] Image.getbox()
  • [ ] Image.getextrema()
  • [ ] Image.getprojection()
  • [ ] Image.split()

TBF

dahlia avatar Jun 21 '13 05:06 dahlia