A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Windows 10 » Windows 10 Help Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Calculating the aspect ratio



 
 
Thread Tools Rate Thread Display Modes
  #16  
Old June 7th 19, 02:59 PM posted to alt.comp.os.windows-10
Ken Springer[_2_]
external usenet poster
 
Posts: 3,817
Default Calculating the aspect ratio

On 6/7/19 4:49 AM, Ammammata wrote:
Il giorno Thu 06 Jun 2019 11:25:54p, *Ken Springer* ha inviato su
alt.comp.os.windows-10 il messaggio .
Vediamo cosa ha scritto:


https://andrew.hedges.name/experiments/aspect_ratio/



just note the Common ratios list is missing the well known 1280x1024,
typical on many monitors several years ago


It is also missing 640X480, and 1152X864. :-)


--
Ken
MacOS 10.14.5
Firefox 67.0
Thunderbird 60.7
"My brain is like lightning, a quick flash
and it's gone!"
Ads
  #17  
Old June 7th 19, 03:21 PM posted to alt.comp.os.windows-10
Mayayana
external usenet poster
 
Posts: 6,438
Default Calculating the aspect ratio

"Ken Springer" wrote

| At your age, you should really not be concerned by primary school
| mathematics because children are better at that and they enjoy doing
| them. I did these things when I was only 8.
|
| The senility of that statement sill proves I'm many years younger than
you.
|

Eat your melba toast and behave yourself. The
last person who tried to break out of this place lost
his TV privileges and had to go 2 weeks without
The Peoples' Court. Good Guy only has your best
interests in mind.


  #18  
Old June 7th 19, 03:25 PM posted to alt.comp.os.windows-10
Ken Springer[_2_]
external usenet poster
 
Posts: 3,817
Default Calculating the aspect ratio

On 6/6/19 9:28 PM, Mayayana wrote:
| W1... Enter 1280
| H1... Enter 600
|
| How does he calculate the aspect ratio, just above the Example
| rectangle, to be 32:15? This is the math I don't remember. LOL
|

He's not doing that. But you can do it with division.
1280 / 600 = 2.13333333:1. You need whole numbers?
I don't know how to do that with a formula.


He is somehow. Different numbers input as H1 and W1 instantly gives you
a new aspect ratio. It apparently doesn't matter what those numbers are.

Try these numbers, for instance:

W1 = 1368
H1 = 768

Without making any additional changes to the calculator, the new aspect
ratio is immediately displayed.

Maybe he is using a script of some kind, I don't know. I looked at the
page source, but my HTML isn't good enough to know what he's doing.

--
Ken
MacOS 10.14.5
Firefox 67.0
Thunderbird 60.7
"My brain is like lightning, a quick flash
and it's gone!"
  #19  
Old June 7th 19, 03:27 PM posted to alt.comp.os.windows-10
Ken Springer[_2_]
external usenet poster
 
Posts: 3,817
Default Calculating the aspect ratio

On 6/7/19 7:45 AM, Bucky Breeder wrote:
The nice thing about the age of Google is we don't need no steenkeen math!


Once in a while, having something on paper is quicker and more efficient
than looking it up on the web.

There's no perfect answer to everything.

--
Ken
MacOS 10.14.5
Firefox 67.0
Thunderbird 60.7
"My brain is like lightning, a quick flash
and it's gone!"
  #20  
Old June 7th 19, 03:41 PM posted to alt.comp.os.windows-10
Char Jackson
external usenet poster
 
Posts: 10,449
Default Calculating the aspect ratio

On Fri, 7 Jun 2019 08:27:46 -0600, Ken Springer
wrote:

On 6/7/19 7:45 AM, Bucky Breeder wrote:
The nice thing about the age of Google is we don't need no steenkeen math!


Once in a while, having something on paper is quicker and more efficient
than looking it up on the web.

There's no perfect answer to everything.


42 is nearly perfect.

  #21  
Old June 7th 19, 03:49 PM posted to alt.comp.os.windows-10
Ken Springer[_2_]
external usenet poster
 
Posts: 3,817
Default Calculating the aspect ratio

On 6/7/19 8:21 AM, Mayayana wrote:
"Ken Springer" wrote

| At your age, you should really not be concerned by primary school
| mathematics because children are better at that and they enjoy doing
| them. I did these things when I was only 8.
|
| The senility of that statement sill proves I'm many years younger than
you.
|

Eat your melba toast and behave yourself. The
last person who tried to break out of this place lost
his TV privileges and had to go 2 weeks without
The Peoples' Court. Good Guy only has your best
interests in mind.


LOL If he wants to dish it out, he'd better be willing to be on the
receiving end also.

I tried Melba toast one time, didn't think much of it.


--
Ken
MacOS 10.14.5
Firefox 67.0
Thunderbird 60.7
"My brain is like lightning, a quick flash
and it's gone!"
  #22  
Old June 7th 19, 03:53 PM posted to alt.comp.os.windows-10
nospam
external usenet poster
 
Posts: 4,718
Default Calculating the aspect ratio

In article , Ken Springer
wrote:


Now, write the math formula to do that, and remember you can only input
the 1280 and 600, or any other pair of numbers. You do not get to
choose a common factor for input.


are you actually asking how to calculate aspect ratio given width and
height??

At your age, you should really not be concerned by primary school
mathematics because children are better at that and they enjoy doing
them.** I did these things when I was only 8.


The senility of that statement sill proves I'm many years younger than you.


rude as his comment may be, he's correct. it's grade school math.
  #23  
Old June 7th 19, 04:00 PM posted to alt.comp.os.windows-10
Ken Springer[_2_]
external usenet poster
 
Posts: 3,817
Default Calculating the aspect ratio

Hi, Paul.

On 6/6/19 10:05 PM, Paul wrote:
Ken Springer wrote:
On 6/6/19 3:25 PM, Ken Springer wrote:
Does anyone know the underlying mathematical formula used in this
webpage?

https://andrew.hedges.name/experiments/aspect_ratio/

I'm afraid my algebraic skills have dwindled to almost nil in the 65
years since high school algebra! LOL


OK, I screwed up. What I wrote isn't in any way clear for what I'm
looking for. Not the first time I've done that! LOL

W1... Enter 1280
H1... Enter 600

How does he calculate the aspect ratio, just above the Example
rectangle, to be 32:15? This is the math I don't remember. LOL


snip

This is a "convention" for aspect ratios. Note that
people working in the roofing trade, don't always
use the smallest possible ratio, so their conventions
are different. (2 in 12 is low rise, 1 in 16 is "flat" etc,
a roofer would never say "1 in 6", because another
roofer would give him a strange look.)


1 in 4 is the most common, AFAIK. But in heavy snow environments, 1 in
1 is not uncommon, with metal roofs installed so the snow slides off easier.

snip

So the new image I wanted is 80 where 80 is the width X and
---- 45 is the height Y, and
45 the picture is wider than
it is tall.

And then if you stare at the final equality again,
depending on your ratiometric brain, you might notice
"it makes sense". I pencil in "80" in place of "X" and
admire my handiwork.

16 80
---- = ---
9 45


I snipped most of the above discussion as I've been doing that for
years. When I took ratio and proportions, things were called cross
multiplication followed by division...

snip

--
Ken
MacOS 10.14.5
Firefox 67.0
Thunderbird 60.7
"My brain is like lightning, a quick flash
and it's gone!"
  #24  
Old June 7th 19, 04:03 PM posted to alt.comp.os.windows-10
Mayayana
external usenet poster
 
Posts: 6,438
Default Calculating the aspect ratio

"Ken Springer" wrote

| He's not doing that. But you can do it with division.
| 1280 / 600 = 2.13333333:1. You need whole numbers?
| I don't know how to do that with a formula.
|
| He is somehow. Different numbers input as H1 and W1 instantly gives you
| a new aspect ratio. It apparently doesn't matter what those numbers are.
|
| Try these numbers, for instance:
|
| W1 = 1368
| H1 = 768
|
| Without making any additional changes to the calculator, the new aspect
| ratio is immediately displayed.
|

OK. I don't generally enable script so I was just
looking at the page and didn't notice.

| Maybe he is using a script of some kind, I don't know. I looked at the
| page source, but my HTML isn't good enough to know what he's doing.
|

He's using PHP on the backend. The only script is
for responsiveness and Google ads.

Here's one that's actually using javascript:

https://eikhart.com/blog/aspect-ratio-calculator

Note that the Math object is inherent to JS, so
I'm not sure there's any universal formula there.


  #25  
Old June 7th 19, 04:15 PM posted to alt.comp.os.windows-10
Ken Springer[_2_]
external usenet poster
 
Posts: 3,817
Default Calculating the aspect ratio

On 6/7/19 8:53 AM, nospam wrote:
In article , Ken Springer
wrote:


Now, write the math formula to do that, and remember you can only input
the 1280 and 600, or any other pair of numbers. You do not get to
choose a common factor for input.


are you actually asking how to calculate aspect ratio given width and
height??


Yep. :-)

And kudos to you, you're the first one to actually ask. G

At your age, you should really not be concerned by primary school
mathematics because children are better at that and they enjoy doing
them.Â*Â* I did these things when I was only 8.


The senility of that statement sill proves I'm many years younger than you.


rude as his comment may be, he's correct. it's grade school math.


Correct, ratios and proportions are grade school math. But writing a
mathematical formula to do it with just inputting 2 variables,
apparently is not. G



--
Ken
MacOS 10.14.5
Firefox 67.0
Thunderbird 60.7
"My brain is like lightning, a quick flash
and it's gone!"
  #26  
Old June 7th 19, 04:25 PM posted to alt.comp.os.windows-10
Ken Springer[_2_]
external usenet poster
 
Posts: 3,817
Default Calculating the aspect ratio

On 6/7/19 9:03 AM, Mayayana wrote:
"Ken Springer" wrote

| He's not doing that. But you can do it with division.
| 1280 / 600 = 2.13333333:1. You need whole numbers?
| I don't know how to do that with a formula.
|
| He is somehow. Different numbers input as H1 and W1 instantly gives you
| a new aspect ratio. It apparently doesn't matter what those numbers are.
|
| Try these numbers, for instance:
|
| W1 = 1368
| H1 = 768
|
| Without making any additional changes to the calculator, the new aspect
| ratio is immediately displayed.
|

OK. I don't generally enable script so I was just
looking at the page and didn't notice.

| Maybe he is using a script of some kind, I don't know. I looked at the
| page source, but my HTML isn't good enough to know what he's doing.
|

He's using PHP on the backend. The only script is
for responsiveness and Google ads.

Here's one that's actually using javascript:

https://eikhart.com/blog/aspect-ratio-calculator

Note that the Math object is inherent to JS, so
I'm not sure there's any universal formula there.


Doesn't the math have to be built in somewhere?

I'd pick on his explanation in one spot, but it's no biggie.


--
Ken
MacOS 10.14.5
Firefox 67.0
Thunderbird 60.7
"My brain is like lightning, a quick flash
and it's gone!"
  #27  
Old June 7th 19, 04:43 PM posted to alt.comp.os.windows-10
nospam
external usenet poster
 
Posts: 4,718
Default Calculating the aspect ratio

In article , Ken Springer
wrote:

At your age, you should really not be concerned by primary school
mathematics because children are better at that and they enjoy doing
them.** I did these things when I was only 8.

The senility of that statement sill proves I'm many years younger than you.


rude as his comment may be, he's correct. it's grade school math.


Correct, ratios and proportions are grade school math. But writing a
mathematical formula to do it with just inputting 2 variables,
apparently is not. G


true. algebra is taught in middle school.
  #28  
Old June 7th 19, 05:10 PM posted to alt.comp.os.windows-10
Ken Springer[_2_]
external usenet poster
 
Posts: 3,817
Default Calculating the aspect ratio

On 6/7/19 9:43 AM, nospam wrote:
In article , Ken Springer
wrote:

At your age, you should really not be concerned by primary school
mathematics because children are better at that and they enjoy doing
them.Â*Â* I did these things when I was only 8.

The senility of that statement sill proves I'm many years younger than you.

rude as his comment may be, he's correct. it's grade school math.


Correct, ratios and proportions are grade school math. But writing a
mathematical formula to do it with just inputting 2 variables,
apparently is not. G


true. algebra is taught in middle school.


Not necessarily. It will depend on the individual school district, and
what constitutes "middle school".

For me, the phrase "middle school" didn't exist. I don't know why
people had to change the name. LOL


--
Ken
MacOS 10.14.5
Firefox 67.0
Thunderbird 60.7
"My brain is like lightning, a quick flash
and it's gone!"
  #29  
Old June 7th 19, 05:15 PM posted to alt.comp.os.windows-10
😉 Good Guy 😉
external usenet poster
 
Posts: 1,483
Default Calculating the aspect ratio

On 07/06/2019 14:42, Ken Springer wrote:

Now, write the math formula to do that, and remember you can only
input the 1280 and 600, or any other pair of numbers. You do not get
to choose a common factor for input.



The basic formula is to find the GCD of two numbers and then divide the
two numbers (Numerator & Denominator) by that GCD

For example, if you have a screen size of 1152 X 864 then GCD of 1152
and 864 is 288. (This means 288 is the highest number that can divide
both numbers exactly without leaving a remainder (or zero remainder).

Now the aspect ratio becomes: 1152/288 : 864/288
this gives us: 4:3

by the way GCD stands for "Greatest Common Divisor" and you can find
the number by plugging this in Excel:

=GCD(A1,A2) where cell A1 is 1152, and cell A2 is 864



If you want I can put a C# program online for you to play with it. It
will a an executable file made by "Good Guy" so you need to decide
whether you want to run this program on your machine or not.








--
With over 950 million devices now running Windows 10, customer
satisfaction is higher than any previous version of windows.

  #30  
Old June 7th 19, 05:21 PM posted to alt.comp.os.windows-10
Ken Springer[_2_]
external usenet poster
 
Posts: 3,817
Default Calculating the aspect ratio

On 6/7/19 10:15 AM, 😉 Good Guy 😉 wrote:
On 07/06/2019 14:42, Ken Springer wrote:

Now, write the math formula to do that, and remember you can only
input the 1280 and 600, or any other pair of numbers.Â* You do not get
to choose a common factor for input.



The basic formula is to find the GCD of two numbers and then divide the
two numbers (Numerator & Denominator) by that GCD

For example, if you have a screen size of 1152 X 864 then GCD of 1152
and 864 is 288.Â*Â* (This means 288 is the highest number that can divide
both numbers exactly without leaving a remainder (or zero remainder).

Now the aspect ratio becomes:Â* 1152/288Â* :Â* 864/288
Â*this gives us: 4:3

by the way GCD stands for "Greatest Common Divisor"Â* and you can find
the number by plugging this in Excel:

=GCD(A1,A2)Â*Â* where cell A1 is 1152, and cell A2 is 864


That's OK, but I need to go straight from 1152:864 to 4:3/


If you want I can put a C# program online for you to play with it. It
will a an executable file made by "Good Guy"Â* so you need to decide
whether you want to run this program on your machine or not.


Thanks for the offer, but I need a formula that goes straight to the "end".

--
Ken
MacOS 10.14.5
Firefox 67.0
Thunderbird 60.7
"My brain is like lightning, a quick flash
and it's gone!"
 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 01:09 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.