I was wondering if a user uploads an image how can I get the aspect ratio of that image when creating the thumb. I know my width will be 180px but how can I get the height.
Here is the code I got so far listed below.
list($width, $height) = getimagesize($file) ;
if ($width >= 180){
$modwidth = 180;
$modheight = ;
} else {
$modwidth = $width;
$modheight = $height;
}