From: Marcel Werk Date: Mon, 15 Apr 2013 18:48:32 +0000 (+0200) Subject: Fixed broken imagick thumbnail generator X-Git-Tag: 2.0.0_Beta_1~348 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9b8dc785bd6f9bc6f308c5a8d6991cd5eb01f146;p=GitHub%2FWoltLab%2FWCF.git Fixed broken imagick thumbnail generator --- diff --git a/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php b/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php index 4a9734da9b..f9700599a6 100644 --- a/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php +++ b/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php @@ -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;