Re:Show HN: AspectRat.io – Aspect ratio calculator and devic...
by sd8dgf8ds8g8dsg on Friday November 17, 2017 @09:19AM
(#15722124)
Not sure why make a whole website of this
[ Parent
| on HN ]
Re:Show HN: AspectRat.io – Aspect ratio calculator and devic...
by suprfnk on Friday November 17, 2017 @10:53AM
(#15722960)
Because my non-programmer friend can use a website, but not write a program.
Re:Show HN: AspectRat.io – Aspect ratio calculator and devic...
by 52-6F-62 on Friday November 17, 2017 @02:37PM
(#15725297)
This. I work in media. Just passed this along to a few designer friends, and even non-designers who work with magazine design teams and regularly have to translate images and resize/crop them for mobile and web.
edit: They're already happy to have it in their back pocket.
Re:Show HN: AspectRat.io – Aspect ratio calculator and devic...
by ryanhefner on Friday November 17, 2017 @11:25AM
(#15723358)
Exactly.
Re:Show HN: AspectRat.io – Aspect ratio calculator and devic...
by johnhenry on Friday November 17, 2017 @01:05PM
(#15724354)
Worth mentioning that the page makes it explicit that it uses this library: https://github.com/ryanhefner/calculate-aspect-ratio/blob/ma...
Re:Show HN: AspectRat.io – Aspect ratio calculator and devic...
by ryanhefner on Friday November 17, 2017 @11:12AM
(#15723192)
Yeah, this is really more of a reference and a tool when you’re comparing sizes and confirming they are the same aspect ratio without having to use code. There’s also an NPM module that will do the code part if you need to go that route.
Re:Show HN: AspectRat.io – Aspect ratio calculator and devic...
by nottorp on Friday November 17, 2017 @10:33AM
(#15722734)
He/she/it hasn't heard of 1920x1200 :)
All those devices are 16:9 i think?
Re:Show HN: AspectRat.io – Aspect ratio calculator and devic...
by ryanhefner on Friday November 17, 2017 @11:13AM
(#15723209)
Yeah, I need to beef up the devices/resolutions listing. What device(s) have 1920x1200?
Re:Show HN: AspectRat.io – Aspect ratio calculator and devic...
by suprfnk on Friday November 17, 2017 @12:54PM
(#15724231)
The maximum scaling option in macOS for 15" retina MacBook Pro's (all 15" retina models since 2012) is 1920x1200. So it's probably used quite a lot.
https://www.apple.com/macbook-pro/specs/
Select 15" and scroll to Display section.
Re:Show HN: AspectRat.io – Aspect ratio calculator and devic...
by schemathings on Friday November 17, 2017 @02:36PM
(#15725293)
Might be nifty to just match the list of devices in Chrome Inspector ..?
Re:Show HN: AspectRat.io – Aspect ratio calculator and devic...
by schemathings on Friday November 17, 2017 @02:56PM
(#15725463)
This may also be of interest .. https://stackoverflow.com/questions/30610143/why-does-google...
Re:Show HN: AspectRat.io – Aspect ratio calculator and devic...
by schemathings on Friday November 17, 2017 @02:54PM
(#15725451)
I just looked at Responsive Design Mode in Firefox Developer Tools and they also have a list of 16 devices with resolutions (Chrome has 29). There is a lot of overlap in the two lists, but using those would tie into a common tool we use to view sites on different devices.
Re:Show HN: AspectRat.io – Aspect ratio calculator and devic...
by nottorp on Friday November 17, 2017 @04:27PM
(#15726100)
My monitor, for example. Or do you only design for phones? I'm afraid I'll close your sites sight unseen if you do them that way.
Re:Show HN: AspectRat.io – Aspect ratio calculator and devic...
by sp332 on Friday November 17, 2017 @11:57AM
(#15723678)
My 2008 Dell Studio 15 laptop :)
Re:Show HN: AspectRat.io – Aspect ratio calculator and devic...
by ryanhefner on Friday November 17, 2017 @12:06PM
(#15723770)
I'll be sure to add that as I expand the listing of devices/resolutions.
Re:Show HN: AspectRat.io – Aspect ratio calculator and devic...
by ryanhefner on Friday November 17, 2017 @12:07PM
(#15723781)
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 devic...
by sp332 on Friday November 17, 2017 @01:28PM
(#15724613)
Yeah, I like this idea. It's kind of what I was expecting before I visited the page.
Re:Show HN: AspectRat.io – Aspect ratio calculator and devic...
by stephenr on Friday November 17, 2017 @10:11AM
(#15722534)
Have an upvote.
The limit on ridiculous things people will somehow make into a "web service" knows no bounds.
Re:Show HN: AspectRat.io – Aspect ratio calculator and devic...
by ryanhefner on Friday November 17, 2017 @11:20AM
(#15723306)
Thanks. Yeah, not really a "web service", just a reference tool, along with an NPM module you can use.
Also, I’ll be extending the device/resolutions listing, so hopefully it can be a handy reference for designers/developers.
Re:Show HN: AspectRat.io – Aspect ratio calculator and devic...
by stephenr on Friday November 17, 2017 @11:40AM
(#15723502)
The upvote was for `sd8dgf8ds8g8dsg`
> just a reference tool, along with an NPM module you can use.
Why does ~6 lines of basic logic need an NPM module?
Re:Show HN: AspectRat.io – Aspect ratio calculator and devic...
by ryanhefner on Friday November 17, 2017 @11:50AM
(#15723600)
Yeah, probably doesn't. I just found myself using it across a couple different projects and seemed like it would be easier than having to copy and paste it everywhere.
Also, it has a command line tool that you can use to get the aspect ratio from width/height. So, not just the code.