I have queued job, which saves images from given URLs (get them from remote and save in local) and everything works, but, if I put this code inside queued job, I am getting an error in storage/logs/.log
:
local.ERROR: Unable to init from given url (url which exists and I can access via browser )...
I can access these URLs, allow_url_fopen
is enabled and this code works WITHOUT queued job. This is part of the code:
try{
$img = Image::make($photo->url);
// SAVE BIG IMAGE
$img->save($path . $filenameBig);
}catch (Intervention\Image\Exception\NotReadableException $e){
var_dump($e->getMessage());
}
This $photo->url
is http
and I can see it in the error (it is not empty or something). I can access with a browser to the actual image.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire