public function outputBase64($quality = null)
    {
        ob_start();
        $this->save(-1, $quality);
        $image_data = ob_get_contents();
        ob_end_clean();

        return 'data:' . $this->original_info['mime'] . ';base64,' . base64_encode($image_data);
    }
public function outputBase64($quality = null)
    {
        ob_start();
        $this->save(-1, $quality);
        $image_data = ob_get_contents();
        ob_end_clean();

        return 'data:' . $this->original_info['mime'] . ';base64,' . base64_encode($image_data);
    }
public function outputBase64 ( $ quality = null ) { ob_start ( ) ; $ this -> save ( - 1 , $ quality ) ; $ image_data = ob_get_contents ( ) ; ob_end_clean ( ) ; return 'data:' . $ this -> original_info [ 'mime' ] . ';base64,' . base64_encode ( $ image_data ) ; }
Output the data in Base64 on the supafly

@param null $quality

@return string
@throws Exception
Output the data in Base64 on the supafly