Allow ratios returned by the File.AspectRatio variable to be User-adjusted

Started by ColinIM, September 02, 2014, 05:00:56 AM

Previous topic - Next topic

ColinIM

Please cross-refer to -

A: Related thread - posted by ubacher on 26 August 2014
General Discussion >> How to display aspect ratio (or other calculated values)
https://www.photools.com/community/index.php?action=post;quote=21185;topic=3214.0

B: Related Feature Request - ubacher's own Feature Request, posted here on 30 August 2014
Feature Request >> Addition of an EXACT/NOT EXACT filter option for AspectRatio; Width/Height ratio
https://www.photools.com/community/index.php?topic=3258.0

I echo ubacher's acknowledgement of Mario's response (in B: above) to ubacher's "EXACT/NOT EXACT filter" suggestion, where Mario observed that (I paraphrase) a change to the File.AspectRatio variable as ubacher proposed (and in like vein as I am proposing below) would (probably) "not be useful to that many users", and hence will have a low priority - unless it earns a lot of "+1s". I readily accept this too.

My Feature Request is in TWO parts:

Part 1: Given that the results from the File.AspectRatio variable are drawn from a table or matrix of 'common' and simplified image X/Y ratios, and given that this matrix is currently 'hard-wired' into IMatch's configuration so that its (text) values are 'read-only', please make the contents of this matrix 'modifiable' by IMatch Users so that we can adapt the returned ratio-values to suit our own preferences.

As an example, I attach a fragment of a matrix of ratios as I would prefer them to be returned. This example matrix is a hypothetical one (I don't know how many cells are in the actual matrix as it's implemented) but the values in the second column of my attachment are those actually returned by the current File.AspectRatio variable (IMatch version 5.1.14).

Part 2a: Please add a second table of "flags" - one flag for each possible returned value - which Users of the AspectRatio variable can examine in order to select or to switch between colours or text styles for the different aspect ratios at the point of display.

Part 2b: These 'ratio-style' flags would ideally be User-modifiable also, so that Users could choose to highlight image ratios of particular interest to themselves.

Part 2c: These flags would ideally not be binary, true/false flags but instead could take (I suggest) any single-digit numerical value, 0 to 9. (Or maybe a less restrictive "integer only" constraint need apply here.)

As a starting point - and here I invoke, with thanks, ubacher's "EXACT/NOT EXACT filter" suggestion in his Feature Request B: above - these 'ratio-style' flags could by default indicate whether the ratio being returned for the current image is an approximation of the calculated X/Y ratio, or if it is an exact match to the calculated X/Y ratio.  For example, the flag for the returned ratio "3:2" would be "set" whenever the calculated longest-edge divided by the shortest-edge for the current image is exactly "1.5", but the flag would be UNset for any near approximations of "3:2" such as when the result of the X/Y calculation is 1.48... or 1.53....

The fourth column in my attached matrix shows those values for which I would "set" this "flag of particular significance", or "ratio-style" flag.

Colin P.

[attachment deleted by admin]