PHP: getimagesizefromstring - Manual
mercredi 18 septembre 2013 à 00:09Récupérer les infos sur une image, mais passe en paramètre une chaine plutôt qu'un fichier. C'est plus pratique pour les cas où on récupère une image depuis un flux :
$data = file_get_contents($url);
list($width, $height, $type) = getimagesizefromstring($data);
(Permalink)
$data = file_get_contents($url);
list($width, $height, $type) = getimagesizefromstring($data);
(Permalink)