1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
| /* debut du bloc des propriétés de l'image */
/* date, auteur et taille */
if ( $fn_infos->image->img_dt_creation != '0000-00-00' OR $fn_infos->image->img_auteur != '' ) {
$mg3_aaaa = substr( $fn_infos->image->img_dt_creation,0,4 );
$mg3_mm = substr( $fn_infos->image->img_dt_creation,5,2 );
$mg3_jj = substr( $fn_infos->image->img_dt_creation,8,2 );
$mg3_taille = $fn_infos->image->img_width.' x '.$fn_infos->image->img_height.' px - '.$fn_infos->image->img_size.' ko';
$mg3_auteur = str_replace( ' ','%20', trim( $fn_infos->image->img_auteur ));
}
//! infos d'une image : EXIF
if(in_array(strtolower(end(explode('.', ''.$fn_infos->image->img_chemin.''))), array('jpg', 'jpeg', 'tif', 'tiff'))) // Si fichier Jpeg ou Tiff
{
// Je lis les infos Exif
}
if($exif = exif_read_data( ''.$fn_infos->image->img_chemin.'' , 'EXIF', true )) // Si le fichier images contient des infos Exif
{
// Alors je lis ces informations
}
foreach ($exif as $key => $section) // On parcourt la première partie du tableau multidimensionnel
{
foreach ($section as $name => $value) // On parcourt la seconde partie
{
$exif_tab[$name] .= $value; // Récupération des valeurs dans le tableau $exif_tab
}
}
if($exif_tab['Make']) // Marque de l'appareil
$marque = $exif_tab['Make'];
if($exif_tab['Model'])// Modèle de l'appareil
$modele = $exif_tab['Model'];
if($exif_tab['FocalLength']) // Si les données de la distance focale existent
{
$focale = round($exif_tab['FocalLength'], 0); // j'arrondis la valeur
$focale = $focale." mm"; // Je rajoute l'unité millimètre
}
if($exif_tab['LensModel'])
$objectif = $exif_tab['LensModel'];
if($exif_tab['ExposureTime'])// Vitesse d'obturation
$vit_obt = $exif_tab['ExposureTime'];
if($exif_tab['ApertureFNumber'])// Ouverture
$ouverture = $exif_tab['ApertureFNumber'];
if($exif_tab['ExposureProgram']) // Si les données programme existent
$programme = $exif_tab['ExposureProgram'];
if($exif_tab['ISOSpeedRatings']) // Valeur iso
$iso = $exif_tab['ISOSpeedRatings'];
if($exif_tab['ExposureBiasValue']) // Correction d'exposition
$cor_expo = $exif_tab['ExposureBiasValue'];
if($exif_tab['MeteringMode']) // mode d'exposition (spot, matriciel, pondéré, ... )
$mode = $exif_tab['MeteringMode'];
if($exif_tab['Flash']) // Flash o/n
$flash = ($exif_tab['Flash']);
if($exif_tab['Artist']); // Copyright
$copyright = $exif_tab['Artist'];
if($exif_tab['Software']) // Si l'information sur le logiciel existe
$logiciel = $exif_tab['Software'];
$fn_proprietes.= '
<tr>
<td style="width:60%;vertical-align:top;padding-left:20px;margin: 10px;border: solid #dcdcdc;font-family:verdana;font-size:12px;">
<b>Appareil :</b><br />
- Marque :<span style="padding-left:4px;">'.$marque.'</span><br />
- Modèle :<span style="padding-left:6px;">'.$modele.'</span><br />
- Objectif :<span style="padding-left:6px;">'.$objectif.'</span><br /><br />
<b>Lumière :</b><br />
- Mode de mesure: <span style="padding-left:5px;"><b>'.$mode.'</b></span> *<br />
- Programme : <span style="padding-left:5px;"><b>'.$programme.'</b></span> <span style="font-size:10px;"><i>(1 : Manuel - 3 : Ouverture - 4 : Vitesse)</i></span><br />
- Correction d'exposition : <span style="padding-left:5px;">'.$cor_expo.'</span> IL<br />
- Flash : <span style="padding-left:80px;">'.$flash.'</span><br /><br />
<b>Post-traitement :</b><br />
- Logiciel : <span style="padding-left:35px;">'.$logiciel.'</span><br /><br />
*<br />
<span style="font-size:8px;"><i> - <b>2</b> : Mesure Pondérée centrale (NIKON/ SONY/ OLYMPUS) ou Sélective (CANON) ou Centrale Pondérée (PENTAX) ou Moyenne (FUJI)<br />
- <b>3</b> : Mesure SPOT (CANON/ NIKON/ PENTAX/ SONY) ou Ponctuelle (OLYMPUS) ou Centrale (FUJI)<br />
- <b>4</b> : Mesure Moyenne à Prépondérance Centrale (CANON)<br />
- <b>5</b> : Mesure Matricielle (NIKON) ou Multizone (PENTAX/ SONY) ou Multi (FUJI) ou Evaluative (CANON) ou ZESP Numerique (OLYMPUS)<br />
- <b>255</b> : Pondérée hautes lumières (NIKON)</i></span><br /><br />
</td>
<td style="width:40%;vertical-align:top;text-align:left;padding-left:20px;border: solid #dcdcdc;font-family:verdana;font-size:12px;">
<b>Caractéristiques :</b><br />
- Focale : <span style="padding-left:114px;">'.$focale.'</span><br />
- Vitesse d'obturation : <span style="padding-left:35px;">'.$vit_obt.'</span> ème de sec<br />
- ISO : <span style="padding-left:132px;">ISO-'.$iso.'</span><br />
- Diaphragme : <span style="padding-left:85px;">'.$ouverture.'</span><br/><br/>
<b>Copyright</b> :<span style="padding-left:10px;">'.$copyright.'</span><br/><br/>
<b>'.$mg3l_taille.' :</b> '.$mg3_taille.'<br /><br />
<b>'.$mg3l_auteur.' :</b> <a href="index.php?mod=mg3&ac=rech1&mc='.$mg3_auteur.'">'.$fn_infos->image->img_auteur.'</a><br /><br />
<b>Photographié le :</b> '.$mg3_jj.'/'.$mg3_mm.'/'.$mg3_aaaa.'<br /><br />
</td>
<td style="text-align:left;width:33,3%;vertical-align:top;"></td>
</tr>
</table><br />'; |
Partager