ys-tinify-laravel
ys-tinify-laravel copied to clipboard
i dont understand what you mean in variabel
$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()