I want to force users to insert landscape rather portrait images. I don't
want to be too pedantic about it but they do need to have an approximate 4x3
aspect ratio.
This is my code so far.
$max_height = "500"; // This is in pixels
$max_width = "500"; // This is in pixels
list($width, $height, $type, $w) =
getimagesize($_FILES['userfile']['tmp_name']);
if($width > $max_width || $height > $max_height)
{
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php