コード例 #1
0
ファイル: ImagickImage.php プロジェクト: rjoya/CDNThumbnailer
 /**
  * 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);
 }
コード例 #2
0
ファイル: GDImage.php プロジェクト: rjoya/CDNThumbnailer
 /**
  * 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);
 }
コード例 #3
0
ファイル: gif_image.php プロジェクト: phpcanvas/phpcanvas
 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);
     }
 }
コード例 #4
0
ファイル: Image.php プロジェクト: ucsdmath/image
 /**
  * Constructor.
  *
  * @api
  */
 public function __construct()
 {
     parent::__construct();
 }