Stuff
This commit is contained in:
parent
c7618a8338
commit
acba56a15b
1 changed files with 9 additions and 6 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue