From 87646f444cbe0b02ed4a0d640a67f5ebc745f912 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 26 Jul 2011 18:31:40 +0200 Subject: [PATCH] Implemented image adapters for GD and ImageMagick (2/2) Introduced IMAGE_ADAPTER_TYPE to switch between available backends. Additionally inserted a static method isSupported() to ensure library is available, if not fallback to GD. Usage: wcf\system\image\ImageHandler::getInstance()->getAdapter() --- com.woltlab.wcf/options.xml | 17 +++++- .../lib/system/image/ImageHandler.class.php | 60 +++++++++++++++++++ .../image/adapter/GDImageAdapter.class.php | 7 +++ .../image/adapter/IImageAdapter.class.php | 7 +++ .../image/adapter/ImageAdapter.class.php | 7 +++ .../adapter/ImagickImageAdapter.class.php | 7 +++ 6 files changed, 104 insertions(+), 1 deletion(-) diff --git a/com.woltlab.wcf/options.xml b/com.woltlab.wcf/options.xml index d44d0ade02..090bf9f06b 100644 --- a/com.woltlab.wcf/options.xml +++ b/com.woltlab.wcf/options.xml @@ -33,6 +33,9 @@ general + + general + general @@ -133,6 +136,18 @@ + + + +