I want to make a program that, for starters, list all image files in a folder and writes a warning if one dimension is (i.e.) double (2x) the other dimension, regardless of "image orientation".
I know how to do this, I divide the bigger dimension with the smaller dimension, and if the quotient is 2 or greater, there would be a warning...
Is there a best practise for this; should divide the bigger with the smaller dimension (and look for numbers higher than 1, i.e. 2) OR should I divide the smaller with the bigger dimension (and look for numbers lower than 1, i.e. 0.5)?
As a measure the program would then add padding to make image more square like. Actually I have done this already in Java code, now I try 'go'.
I hope this question could be useful.