I tend to look up aspect ratios frequently.
You went full on with a nice web page and domain name hack.
Add more devices (e.g. ipads etc.), video res (vga,etc.) and more mathematical constants like golden ratio, silver ratio , etc. and add an easy landscape/portrait toggle switch.
I'd like to add: a specs dialog, maybe? Add DPI/HDPI info, recommended DPI for images, etc. Would make this a for-sure go-to.
Nice work!
You can fix the broken CSS for Firefox by adding -moz-appearance in addition to -webkit-appearance.
https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-appear...
w := 1900
h := 1200
divisor := gcd(w, h)
aspect := fmt.Sprintf("%d:%d", w/divisor, h/divisor)
func gcd(x, y int64) int64 {
for y != 0 {
x, y = y, x%y
}
return x
}edit: They're already happy to have it in their back pocket.
The limit on ridiculous things people will somehow make into a "web service" knows no bounds.
Also, I’ll be extending the device/resolutions listing, so hopefully it can be a handy reference for designers/developers.