Implemented image adapters for GD and ImageMagick (2/2)
authorAlexander Ebert <ebert@woltlab.com>
Tue, 26 Jul 2011 16:31:40 +0000 (18:31 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 26 Jul 2011 16:31:40 +0000 (18:31 +0200)
commit87646f444cbe0b02ed4a0d640a67f5ebc745f912
treee518946987f6c461853bc59eb5f7f92e431eb7da
parent64a820cfb6e9f2b84bd4c7f0838222e5d67e9531
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
wcfsetup/install/files/lib/system/image/ImageHandler.class.php
wcfsetup/install/files/lib/system/image/adapter/GDImageAdapter.class.php
wcfsetup/install/files/lib/system/image/adapter/IImageAdapter.class.php
wcfsetup/install/files/lib/system/image/adapter/ImageAdapter.class.php
wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php