Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PIL compatibility layer #118

Open
5 tasks
dahlia opened this issue Jun 21, 2013 · 0 comments
Open
5 tasks

PIL compatibility layer #118

dahlia opened this issue Jun 21, 2013 · 0 comments
Labels
Milestone

Comments

@dahlia
Copy link
Collaborator

dahlia commented Jun 21, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant