src/Image.php
public function toString()
    {
        if (!$this->_isCreated && !$this->createImage()) {
            return false;
        }
        return file_get_contents($this->_tmpImageFile->getFileName());
    }
public function toString()
    {
        if (!$this->_isCreated && !$this->createImage()) {
            return false;
        }
        return file_get_contents($this->_tmpImageFile->getFileName());
    }
Get the raw Image contents (triggers Image creation).
@return string|bool The Image content as a string or `false` if the
Image wasn't created successfully.