22-04-2022

This commit is contained in:
2022-04-22 15:48:30 +02:00
parent 97a73cc2d1
commit e73a0c3a4b
7 changed files with 682 additions and 294 deletions

View File

@@ -86,16 +86,12 @@ foreach($dir as $file){
pathName()
*/
$file = $file->getpathName();
$x = in_bdd($file);
if ($x == false) { //false
if ($exif = @exif_read_data($file, 0, true )) {
if (($file == 'photos/img/4_2008.jpg') || ($file == 'photos/img/10_2020.jpg')) {
_pr($exif);
}
$mod = isset($exif['IFD0']['Model']) ? $exif['IFD0']['Model'] : '';
# YYYY-MM-DD HH:MM:SS.SSS - 2019:10:01 14:03:12
@@ -316,10 +312,10 @@ foreach($dir as $file){
$copyright = (isset($iptc["2#116"][0])) ? $iptc["2#116"][0] : '';
$title = (isset($iptc["2#105"][0])) ? $iptc["2#105"][0] : '';
$creator = (isset($iptc["2#080"][0])) ? $iptc["2#080"][0] : '';
$mots_cles = (isset($iptc["2#025"])) ? $iptc["2#025"] : '';
$mots_cles = (isset($iptc["2#025"])) ? $iptc["2#025"] : ''; // array
if (!empty($mots_cles)) {
foreach ($mots_cles as $key => $val) {
$mots .= $val . ",";
$mots .= strtolower($val) . ",";
}
$mots = substr($mots, 0, -1);
}