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

View file

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