This commit is contained in:
Kekskurse 2021-01-20 00:05:34 +01:00
parent c7618a8338
commit acba56a15b

View file

@ -56,15 +56,18 @@ class EXIFAuslesen implements ShouldQueue
}
file_put_contents($tmpfname, $file);
}
$exit = exif_read_data($tmpfname);
$image->exifRead = true;
if(array_key_exists("DateTimeOriginal", $exit))
{
$image->DateTimeOriginal = $exit["DateTimeOriginal"];
try{
$exit = exif_read_data($tmpfname);
if(array_key_exists("DateTimeOriginal", $exit))
{
$image->DateTimeOriginal = $exit["DateTimeOriginal"];
}
} catch (\Exception $e) {
echo $e->getMessage();
}
if(empty($image->name)) {
$image->name = $image->filename;
}