Exemplo n.º 1
0
 public function __construct($file)
 {
     if (!self::$checked) {
         self::check();
     }
     parent::__construct($file);
     $this->im = new Imagick();
     $this->im->readImage($file);
 }
Exemplo n.º 2
0
 public function __construct($file)
 {
     if (!self::$checked) {
         self::check();
     }
     parent::__construct($file);
     if (!is_resource($this->image)) {
         $this->image = $this->createGDImageResourse($this->file, $this->type);
     }
 }