public function __construct($file) { if (!self::$checked) { self::check(); } parent::__construct($file); $this->im = new Imagick(); $this->im->readImage($file); }
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); } }