match('/heic|HEIC|jpg|jpeg|JPG|JPEG|webp|WEBP|avif|AVIF$/'); foreach($dir as $file){ //echo $file; // ../photos/img/3_2023.jpg exec($exifToolPath.' '.$exifToolParams.' '.$file, $data); /**/ foreach ($data as $row){ if (! str_starts_with($row, '----')) { $a=explode(":", $row); $key = trim($a[0]); $value = trim($a[1]); $retVal[$key] = $value; } } _pr($retVal); } //echo $retVal['Make']; /* FILE: [File Name] => 1_2006.jpg (filename) [Directory] => photos/img [File Size] => 243 kB [Comment] => Optimized by JPEGmini 3.18.2.210403453-AP 0x2552eeea [Image Width] => 1600 (width) [Image Height] => 1067 (height) EXIF: [Make] => Canon [Camera Model Name] => Canon EOS 20D (model) [Orientation] => Horizontal (normal) [Software] => Adobe Photoshop Lightroom 11.2 Classic (Macintosh) [Artist] => Pesenti Bruno (creator) [Exposure Time] => 1/40 (speed) [F Number] => 14.0 [Exposure Program] => Aperture-priority AE (program) [ISO] => 100 (iso) [Date/Time Original] => 2006:01:15 10:45:35+01:00 (dateoriginal) [Shutter Speed Value] => 1/40 (speed) [Aperture Value] => 14.0 (aperture) [Exposure Compensation] => +1 [Max Aperture Value] => 4.0 [Subject Distance] => 4294967295 m [Metering Mode] => Multi-segment (metering) [Flash] => Off, Did not fire (flash) [Focal Length] => 17.0 mm (35 mm equivalent27.2 mm) (focal) [Color Space] => sRGB [Exposure Mode] => Auto [White Balance] => Auto (wb) [Lens Info] => 17-40mm f/? (lens) [Lens Model] => 17.0-40.0 mm (lens) [GPS Latitude Ref] => North [GPS Longitude Ref] => East [GPS Altitude] => 741.71 m XMP: [Rating] => 4 [Creator Tool] => Adobe Photoshop Lightroom 11.2 Classic (Macintosh) (software) [Lens] => 17.0-40.0 mm (lens) [Image Number] => 119 [Color Temperature] => 5400 [Camera Profile] => Camera Standard [Creator] => Pesenti Bruno (creator) [Subject] => _vert_, neige, vigne (keywords) [Weighted Flat Subject] => _vert_, vigne, neige (keywords) IPTC: [Keywords] => _vert_, neige, vigne (keywords) [By-line] => Pesenti Bruno [City] => La Chaux-du-Dombief [Province-State] => Franche-Comté [Country-Primary Location Name] => France [Headline] => Cascades du Hérisson Composite: [Aperture] => 14.0 (aperture) [Image Size] => 1600x1067 [Scale Factor To 35 mm Equivalent] => 1.6 [Shutter Speed] => 1/40 (speed) [Date/Time Original] => 2006:01:15 10:45:35+01:00 [[Composite] GPS Latitude] => 46 deg 36' 43.61" N [[Composite] GPS Longitude] => 5 deg 52' 41.06" E [Circle Of Confusion] => 0.019 mm [Depth Of Field] => inf (0.34 m - inf) [Field Of View] => 66.9 deg [Focal Length] => 17.0 mm (35 mm equivalent27.2 mm) (focal) [GPS Position] => 46 deg 36' 43.61" N, 5 deg 52' 41.06" E [Hyperfocal Distance] => 1.10 m [Lens ID] => 17.0-40.0mm (lens) html lat long alt legende copyright title */ ?>