Wednesday, February 28, 2018

How to get height and width of a image using php.

<?php list($width, $height) = getimagesize('path_to_image');
echo $width."<br/>";
echo $height; 
?>

No comments:

Post a Comment