/** * 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); }
/** * 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); }
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); } }
/** * Constructor. * * @api */ public function __construct() { parent::__construct(); }