wp_read_image_metadata

FUNCTION wp-admin\includes\image.php (ligne 809) github
Gets extended image metadata, exif or iptc as available. Retrieves the EXIF metadata aperture, credit, camera, caption, copyright, iso created_timestamp, focal_length, shutter_speed, and title. The IPTC metadata that is retrieved is APP13, credit, byline, created date and time, caption, copyright, and title. Also includes FNumber, Model, DateTimeDigitized, FocalLength, ISOSpeedRatings, and ExposureTime.

Paramètres

Entrée :
$file
Sortie :
@param string $file
@return array|false Image metadata array on success, false on failure.

Utilisation

// Utilisation de la fonction wp_read_image_metadata
$result = wp_read_image_metadata($file);

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...