I have a preset image variable $maxwidth and $maxheight of 110 and 176 pixels.
I managed to obtain the image dimension in the variable of $width and $height.
176 / 110 is equal to 1.6
I would like to validate an image using a variable $acceptable so that $height / $width is within the range of 1.58 ~ 1.62.
$acceptable will be equal to 1 if the image aspect ratio is within 1.58 ~ 1.62, or else 0 will be assigned.
I need this short piece of coding for validation.