Ejemplo n.º 1
0
 /**
  * ImagickImage constructor
  */
 public function __construct($sPath)
 {
     if (!extension_loaded('imagick')) {
         throw new Exception('You do not have the ImageMagick PECL extension installed. This class requires this extension to function properly.');
     }
     parent::__construct($sPath);
 }
Ejemplo n.º 2
0
 /**
  * GDImage constructor
  */
 public function __construct($sPath)
 {
     if (!extension_loaded('gd')) {
         throw new Exception('You do not have the GD Library installed.  This class requires the GD library to function properly.');
     }
     parent::__construct($sPath);
 }
Ejemplo n.º 3
0
 public function __construct($wild, $height = 100)
 {
     if (is_int($wild)) {
         parent::__construct($wild, $height);
     } elseif (is_object($wild) && method_exists($wild, 'getImage')) {
         $this->image = $wild->getImage();
     } else {
         $this->fileSource = $wild;
         $this->image = imagecreatefromgif($wild);
     }
 }
Ejemplo n.º 4
0
 /**
  * Constructor.
  *
  * @api
  */
 public function __construct()
 {
     parent::__construct();
 }