How can I recognize if image stored in same folder as PHP script is landscape or portrait ? I need to implement it to this function:
if ($dir = @opendir($folder))
{
while ($file = readdir($dir))
{
if (in_array(strtolower(FileExt($file)), $extensions))
{
if (!is_dir($file))
{
if (isLandsape($file))
{
$files[] = $file;
}
}
}
}
closedir($dir);
}