[wellwell-devel] [wellwell] Allow manipulations on a reference of a image.

Stefan Hornburg wellwell-devel at rt.icdevgroup.org
Mon May 28 06:52:37 UTC 2012


commit 9209fc39c126c7ec9d63efcc5d779d3c2f8e2272
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date:   Mon May 28 08:51:20 2012 +0200

    Allow manipulations on a reference of a image.

 lib/Vend/Picture.pm |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/lib/Vend/Picture.pm b/lib/Vend/Picture.pm
index 92c4636..ea3a038 100644
--- a/lib/Vend/Picture.pm
+++ b/lib/Vend/Picture.pm
@@ -1,6 +1,6 @@
 # Vend::Picture - Interchange image helper functions
 #
-# Copyright (C) 2004-2010 Stefan Hornburg (Racke) <racke at linuxia.de>.
+# Copyright (C) 2004-2012 Stefan Hornburg (Racke) <racke at linuxia.de>.
 # Copyright (C) 2010 Rok Ružič <rok.ruzic at informa.si>.
 #
 # This program is free software; you can redistribute it and/or modify
@@ -407,6 +407,10 @@ sub magick {
 	elsif ($name) {
 		@args = (filename => $name);
 	}
+    elsif (ref($name) eq 'SCALAR') {
+        tie *IMG, 'IO::Scalar', $name;
+        @args = (file => \*IMG);
+    } 
 	else {
 		# missing parameter
 		$Tag->error({name => 'picture',



More information about the wellwell-devel mailing list