I'm using this code:
if (($height/$width) > 0.5 && ($height/$width) < 0.8) {
// do stuff
}
For a particular image, $height/$width evaluates to 0.66543438077634 (1080/1623). And yet this appears to be evaluating as false. Can anyone suggest why?
if ((floatval($height)/floatval($width)) > 0.5) ...