Salutations,
Je cherche à obtenir de façon simple quelques metadonnées EXIF, pour un site de photos.
J'ai un début de code comme celui-ci :
Mais pour l'instant, cela me sort un flot de données loin d'être exploitables, du genre :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 (...) // Definition de l'ensemble $tab=glob($path."{*.gif,*.GIF,*.jpg,*.JPG,*.jpeg,*.JPEG,*.png,*.PNG}", GLOB_BRACE); // Affichage aléatoire de l'image // shuffle($tab); // Definition de l'absolue de Tab $tab2 = current($tab); (...) getimagesize ( $tab2 , $info); $exif = array(); if (isset($info)) { foreach($info as $key => $val) { if ($key != 'APP1') { $exif = read_exif_data($tab2, 'FILE'); break; } } } echo current($info);
Je ne suis pas très à l'aise avec la commande read_exif_data...(...) ����������Canon�Canon EOS 450D��� �'���� �'��Adobe Photoshop CS3 Windows�2008:07:20 16:36:54���������J��������R��"��������'� (...)
Merci de votre aide...![]()
Partager