public function generate($file, $time, $destination)
{
$destination = $this->normalizeFilename($destination);
try {
$video = $this->ffmpeg->open($file);
$timecode = TimeCode::fromString($time);
$frame = $video->frame($timecode);
$frame->save($destination);
} catch (InvalidArgumentException $e) {
// there will be no image file - so nothing to do here
}
return file_exists($destination);
}