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.

Share

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.