usa getimagesize();

Codice PHP:

$img 
getimagesize($link_alla_immagine);

$larghezza $img[0];
$altezza $img[1];