Aspect ratio in window title
Submitted by cso..@..mai.hu
Link to original bug (#783921)
Description
It would be nice to see the aspect ratio of the current image in the window title bar. Now I can see the dimensions there like 640x480 but the ratio like 4:3 is not visible.
In order to display this value, there should be a list of frequently used ratio names: 3:2 4:3 16:9 16:10 21:9 ...
If the width/height ratio equals one of these values then it should be displayed in the window title bar. Otherwise the pixel numbers should be written.
[tiger] (imported)-3.0 (RGB colour, 1 layer) 640x480 (ratio: 4:3) - GIMP [tiger] (imported)-3.0 (RGB colour, 1 layer) 640x481 (ratio: 640:481) - GIMP
Unfortunately the fraction simplification is not enough because in some cases people use not the simplest form. For example, 16:10 and 21:9 are used instead of 8:5 and 7:3, respectively. Therefore, the definition of the list is needed.
Note: the https://en.wikipedia.org/wiki/Aspect_ratio_(image) page lists many commonly used aspect ratios.
Version: git master