[Python-modules-commits] [willow] 06/11: Added get_{pillow, wand}_image operations

Christopher Stuart Hoskin mans0954 at moszumanska.debian.org
Tue Dec 5 23:12:18 UTC 2017


This is an automated email from the git hooks/post-receive script.

mans0954 pushed a commit to tag v0.1.1
in repository willow.

commit 9f04b4eb0f85c40657618ec4e381e00a988ad61f
Author: Karl Hobley <karlhobley10 at gmail.com>
Date:   Wed Feb 18 17:01:54 2015 +0000

    Added get_{pillow,wand}_image operations
---
 willow/backends/pillow.py | 5 +++++
 willow/backends/wand.py   | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/willow/backends/pillow.py b/willow/backends/pillow.py
index be34411..62191c9 100644
--- a/willow/backends/pillow.py
+++ b/willow/backends/pillow.py
@@ -83,3 +83,8 @@ def pillow_has_alpha(backend):
 def pillow_has_animation(backend):
     # Animation not supported by PIL
     return False
+
+
+ at PillowBackend.register_operation('get_pillow_image')
+def pillow_get_pillow_image(backend):
+    return backend.image.copy()
\ No newline at end of file
diff --git a/willow/backends/wand.py b/willow/backends/wand.py
index 0c29721..ed932e1 100644
--- a/willow/backends/wand.py
+++ b/willow/backends/wand.py
@@ -64,3 +64,8 @@ def wand_has_alpha(backend):
 @WandBackend.register_operation('has_animation')
 def wand_has_animation(backend):
     return backend.image.animation
+
+
+ at WandBackend.register_operation('get_wand_image')
+def wand_get_wand_image(backend):
+    return backend.image.clone()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/willow.git



More information about the Python-modules-commits mailing list