November 29, 2016
Calculate aspect ratio
This is a handy little function I’ve used a few times to calculate the aspect ratio of an image or video. Simply give it the width and height and it’ll give you the aspect ratio.
php, web stuff, raspberry pi… even blacksmithing!