traits/image.php
final public function dataURI($as = null)
	{
		$mime = is_int($as) ? image_type_to_mime_type($as) : $this->_image_mime;
		return 'data:' . $mime . ';base64,' . base64_encode($this->imageAsBinary($as));
	}
final public function dataURI($as = null)
	{
		$mime = is_int($as) ? image_type_to_mime_type($as) : $this->_image_mime;
		return 'data:' . $mime . ';base64,' . base64_encode($this->imageAsBinary($as));
	}
final public function dataURI ( $ as = null ) { $ mime = is_int ( $ as ) ? image_type_to_mime_type ( $ as ) : $ this -> _image_mime ; return 'data:' . $ mime . ';base64,' . base64_encode ( $ this -> imageAsBinary ( $ as ) ) ; }
Converts image to a base64 encoded string

@param void
@return string   "data:image/*;base64,..."
Converts image to a base64 encoded string