getBase64() публичный Метод

Outputs image as data base64 to use as img src
public getBase64 ( null | string $format = 'gif', integer | null $quality = null, $addMime = true ) : string
$format null | string If omitted or null - format of original file will be used, may be gif|jpg|png
$quality integer | null Output image quality in percents 0-100
Результат string
Пример #1
0
 /**
  * @expectedException \JBZoo\Image\Exception
  */
 public function testToBase64Undefined()
 {
     $img = new Image();
     $img->getBase64();
 }