}
- function toBase64($rotate = false)
+ function toBase64($rotate = false, $scaleWidth = 0, $scaleHeight = 0)
{
if(!preg_match('/^image\//', $this->mimetype)){
return false;
$data = $this->rotate();
}
+
+
$base64 = 'data:' . $this->mimetype . ';base64,' . base64_encode($data);
return $base64;