<?php list($width, $height) = getimagesize('myimage.png'); echo "Image Width = " . $width . " / Image Height = " . $height; if ($width > 990 || $height > 990) { echo "
Maximum width and height exceeded. Please upload images below 990 x 990 px size"; exit(); } ?>