yasmuru / ys-tinify-laravel

Tinify API support with laravel
MIT License
41 stars 14 forks source link

i dont understand what you mean in variabel #2

Open ilham-dev opened 6 years ago

ilham-dev commented 6 years ago
   $result = Tinify::fromFile('\path\to\file');

$result = Tinify::fromBuffer($source_data);

$result = Tinify::fromUrl($image_url);

/** To save as File **/
$result->toFile('\path\to\save');

/** To get image as data **/
$data = $result->toBuffer();

i get error. Call to undefined method Tinify::fromBuffer()