Skip to content

Takes a list of different device's viewport dimensions and converts them to a common aspect ratio

License

Notifications You must be signed in to change notification settings

taksyon/AspectRatiosNearFinder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

AspectRatiosNearFinder 🔍

Are you tired of device manufacturer's choosing the ever-so unique and elegant screen aspect ratio of 195:422?

Welcome to AspectRatiosNearFinder, the smugly condescending script that tells device manufacturers what their device's aspect ratio actually is.

image

Written in python, this script takes a list of tuples for the viewport dimensions, compares them to a list of common, simplified aspect ratios, and prints what they are closest to. Useful for web development and image asset design.