Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
calculating ratios to find optimal grid layout
#4
(02-20-2025, 01:51 AM)SMcNeill Wrote: I have no idea what this is supposed to do.

I type in: 5 Items

It matches a 16:9 ratio, with a 5x1 grid.

A 5x1 grid isn't a 16:9 ratio.  

What exactly is this supposed to be doing here?
For example, say you have 15 pictures. You might want to lay those out to fit a picture frame in vertical orientation. Say the ratio of horizontal to vertical is 3:5. 
So the pictures would be arranged as a 3x5 grid, like 

01 02 03
04 05 06
07 08 09
10 11 12
13 14 15

If you wanted a horizontal orientation, the ratio now becomes 5:3, a 5x3 grid, like 

01 02 03 04 05
06 07 08 09 10
11 12 13 14 15

If you had a square frame, you would arrange them in a 4x4 grid: 

01 02 03 04
05 06 07 08
09 10 11 12
13 14 15 XX

where the last space is empty. 

Depending on the # of pictures that need to be arranged, that number is going to more evenly fit into some picture frames' aspect ratios better than others, i.e., a perfect fit would mean no spaces are left empty, but 1 space left empty is better than 2 or more. 

So what this program does is, given a count representing the # of pictures (or items), it displays how evenly that many items are going to fit into different aspect ratios, in order of the best fit (least empty spaces) to the worse (most empty spaces).

As a tool it helps you decide what aspect ratio picture frame to get to display a given # of pictures, or if the frame or screen size's aspect ratio is already determined, it lets you know how many pictures you would need to add or remove for a perfect fit (if needed).
Reply


Messages In This Thread
RE: calculating ratios to find optimal grid layout - by madscijr - 02-20-2025, 09:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Feature Request: Limit Scope of a "Find" and "Change" hanness 5 720 06-21-2025, 11:21 PM
Last Post: SMcNeill
  Searching sateliet calculating position program. Rudi59 4 1,224 09-20-2024, 10:50 PM
Last Post: Rudi59
  Question about Find in Search TerryRitchie 3 827 05-02-2024, 05:29 PM
Last Post: TerryRitchie
  CHALLENGE: Find a Way to Activate a Window Pete 9 1,652 12-10-2022, 08:07 AM
Last Post: Pete
  Just finished calculating pi to 30 trillion places. Pete 30 6,621 09-11-2022, 02:21 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)