PHP-Fusion Development

exif()

Get information about a specific image.

Versions: 9

exif( string $imagePath ) : mixed

Parameters

$imagePath (string) (Required) Path to the image.

Return Values

(array|false) False, if the image does not exist.

Examples

require_once INCLUDES.'photo_functions_include.php';
‚Äč
$imagePath = IMAGES.'php-fusion-logo.png';
exif($imagePath);
/*
Array
(
[width] => 295
[height] => 99
[mime] => image/png
[channels] =>
[bits] => 8
[make] => No information available
[model] => No information available
[exposure] => No information available
[aperture] => No information available
[date] => No information available
[iso] => No information available
)
*/