diff options
author | plegall <plg@piwigo.org> | 2012-07-25 10:31:56 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2012-07-25 10:31:56 +0000 |
commit | be73b982e56935289aab133cc839adaef6c1c0c8 (patch) | |
tree | 7f22e2723281e578e73ab275d57312950b6ac2df /admin/include/image.class.php | |
parent | 261a3862915d8e3d9f12aaa033d64061da50201d (diff) |
bug 2705 (related to): if rotate function is called with a 0 (zero) angle,
like plugin RotateImage may do, ExtIM fails with the same error
"convert: invalid argument for option `-rotate': -orient"
git-svn-id: http://piwigo.org/svn/branches/2.4@17003 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/include/image.class.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/admin/include/image.class.php b/admin/include/image.class.php index 499fcbbea..410a2dd05 100644 --- a/admin/include/image.class.php +++ b/admin/include/image.class.php @@ -559,6 +559,11 @@ class image_ext_imagick implements imageInterface function rotate($rotation) { + if (empty($rotation)) + { + return true; + } + if ($rotation==90 || $rotation==270) { $tmp = $this->width; |