Stuff
This commit is contained in:
parent
c7618a8338
commit
acba56a15b
1 changed files with 9 additions and 6 deletions
|
@ -56,15 +56,18 @@ 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;
|
||||||
if(array_key_exists("DateTimeOriginal", $exit))
|
try{
|
||||||
{
|
$exit = exif_read_data($tmpfname);
|
||||||
$image->DateTimeOriginal = $exit["DateTimeOriginal"];
|
if(array_key_exists("DateTimeOriginal", $exit))
|
||||||
|
{
|
||||||
|
$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