function __construct() { set_time_limit(0); $this->client = new Client(); // configure with favored image driver (gd by default) Image::configure(['driver' => 'imagick']); }