Get Width and Height of Image using PHP

getimagesize function

<?php

[$width, $height] = getimagesize('test.jpg');

echo $width.' '.$height;

Leave a Comment

Cancel reply

Your email address will not be published.