ImageToolsFactory Class Reference
[ImageTools]
Wrapper around common image operations. More...
Static Public Member Functions |
|
static | create_imagetools () |
Create image tools. |
|
static | load ($implementation) |
Public Attributes |
|
const | IMPL_GD = 'gd' |
Detailed Description
Wrapper around common image operations.
Uses either gd or imagick extension, if installed. imagick is preferred.
Definition at line 10 of file imagetoolsfactory.cls.php.
Member Function Documentation
static ImageToolsFactory::create_imagetools | ( | ) | [static] |
Create image tools.
- Returns:
- IImageTools
Definition at line 18 of file imagetoolsfactory.cls.php.
00018 { 00019 $ret = false; 00020 // Find and set implementation 00021 //if (class_exists('Imagick')) { 00022 // require_once dirname(__FILE__) . '/imagetools_impl/imagetools.imagick.cls.php'; 00023 // ImageTools::set_implementation(new ImageToolsIMagick()); 00024 //} 00025 //else { 00026 self::load(self::IMPL_GD); 00027 $ret = new ImageToolsGD(); 00028 //} 00029 return $ret; 00030 }
static ImageToolsFactory::load | ( | $ | implementation | ) | [static] |
Definition at line 32 of file imagetoolsfactory.cls.php.
Member Data Documentation
const ImageToolsFactory::IMPL_GD = 'gd' |
Definition at line 11 of file imagetoolsfactory.cls.php.
The documentation for this class was generated from the following file:
- contributions/lib.imagetools/lib/components/imagetoolsfactory.cls.php