Fixed broken imagick thumbnail generator
authorMarcel Werk <burntime@woltlab.com>
Mon, 15 Apr 2013 18:48:32 +0000 (20:48 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 15 Apr 2013 18:48:32 +0000 (20:48 +0200)
wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php

index 4a9734da9b6b6d15c08223e97203262b6666c2d4..f9700599a60d34652362a4d0e8eb9cf782174c2b 100644 (file)
@@ -83,7 +83,7 @@ class ImagickImageAdapter implements IImageAdapter {
         */
        public function createThumbnail($maxWidth, $maxHeight, $obtainDimensions = true) {
                /* todo: obtainDimensions=false doesn't work */
-               $thumbnail = $this->imagick;
+               $thumbnail = clone $this->imagick;
                $thumbnail->cropThumbnailImage($maxWidth, $maxHeight);
                
                return $thumbnail;