ys-tinify-laravel icon indicating copy to clipboard operation
ys-tinify-laravel copied to clipboard

i dont understand what you mean in variabel

Open ilham-dev opened this issue 6 years ago • 0 comments

   $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()

ilham-dev avatar Oct 18 '18 02:10 ilham-dev