Not sure why make a whole website of this 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 }
Show HN: AspectRat.io – Aspect ratio calculator and device resolutions resource
21–30 of 34 posts
Re: Show HN: AspectRat.io – Aspect ratio calculator and device resolutions resource
#22Earlier quoted context omitted.
My 2008 Dell Studio 15 laptop :)
Also, I thinking that it could be handy to maybe default to the resolution/aspect ratio of the device visiting the page. Would that be handy?
Re: Show HN: AspectRat.io – Aspect ratio calculator and device resolutions resource
#23I 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.
Re: Show HN: AspectRat.io – Aspect ratio calculator and device resolutions resource
#24Re: Show HN: AspectRat.io – Aspect ratio calculator and device resolutions resource
#25Not sure why make a whole website of this 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 }
Because my non-programmer friend can use a website, but not write a program.
edit: They're already happy to have it in their back pocket.
Re: Show HN: AspectRat.io – Aspect ratio calculator and device resolutions resource
#26Hey, good job. 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!
Re: Show HN: AspectRat.io – Aspect ratio calculator and device resolutions resource
#27Earlier quoted context omitted.
For responsive embeds I assume. Where the embedded ".inner" component scales it's height according to it's width.
Yeah, that was the intention. Good to use for placeholder styling until the image/video has loaded. And for things like responsive embeds/iframes.
Re: Show HN: AspectRat.io – Aspect ratio calculator and device resolutions resource
#28Earlier quoted context omitted.
Yeah, I need to beef up the devices/resolutions listing. What device(s) have 1920x1200?
Might be nifty to just match the list of devices in Chrome Inspector ..?
Re: Show HN: AspectRat.io – Aspect ratio calculator and device resolutions resource
#29Earlier quoted context omitted.
Yeah, I need to beef up the devices/resolutions listing. What device(s) have 1920x1200?
Might be nifty to just match the list of devices in Chrome Inspector ..?
Re: Show HN: AspectRat.io – Aspect ratio calculator and device resolutions resource
#30Hey, good job. 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.
> 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!