Esempio n. 1
0
 function set_tool()
 {
     if (self::$tool) {
         return;
     }
     if (defined("IMAGE_TOOL") && in_array(IMAGE_TOOL, array('magickwand', 'gd', 'imagick'))) {
         self::$tool = vmc::singleton('image_tools_' . IMAGE_TOOL);
     } else {
         self::$tool = vmc::singleton('image_tools_gd');
     }
 }
Esempio n. 2
0
 function set_tool()
 {
     if (self::$tool) {
         return;
     }
     if (ECAE_MODE) {
         self::$tool = kernel::single('image_tools_ecae');
         return;
     }
     if (defined("IMAGE_TOOL") && in_array(IMAGE_TOOL, array('ecae', 'magickwand', 'gd', 'imagick'))) {
         self::$tool = kernel::single('image_tools_' . IMAGE_TOOL);
     } else {
         self::$tool = kernel::single('image_tools_gd');
     }
 }