public function output()
{
if ($this->html) {
return $this->snappy->getOutputFromHtml($this->html, $this->options);
}
if ($this->file) {
return $this->snappy->getOutput($this->file, $this->options);
}
throw new \InvalidArgumentException('Image Generator requires a html or file in order to produce output.');
}