screen icon indicating copy to clipboard operation
screen copied to clipboard

Not saving image file

Open maplater opened this issue 8 years ago • 1 comments

Hi, I'm not sure what I am doing incorrectly. When I try running the code below and saving the image, nothing shows up in the temp folder. Is there something I am missing? I am using Laravel if that helps. Thank you.

use Screen\Capture;

$screen = new Capture($link);

$filename = md5($link);

$temp_dir = '/public/storage/temp/' . $filename;

$screen->save($temp_dir);

maplater avatar Feb 10 '17 01:02 maplater

Try to give read and write (755 or 777) permissions to /public/storage/temp/ Dir

sam0hack avatar Mar 01 '17 17:03 sam0hack