microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
110.88k stars 6.53k forks source link

Screen Ruler - Display ratio #31632

Open alexisb38 opened 8 months ago

alexisb38 commented 8 months ago

Description of the new feature / enhancement

Add an option to display the ratio (x/y) of the bounds (or spacing) measure tool. image

Scenario when this would be used?

I very often use the spacing or bounds measure only to check that the ratio of an image displayed is what I expect and it is not being transformed from 16/9 to 16/10 for example. It would save me some time not to have to put these numbers in a calculator everytime.

Supporting information

No response

Jay-o-Way commented 8 months ago

Interesting idea. We would have to decide to show as a fraction (when possible) or always as decimal. Or even both?

alexisb38 commented 8 months ago

Interesting idea. We would have to decide to show as a fraction (when possible) or always as decimal. Or even both?

I'm not sure showing only as fraction is a great idea, if the measure is one pixel off, the fraction might be completely different than what you would expect. The difference between 16/9 and 113/63 is harder to figure out at a glance than 1.7777 and 1.793. So for my usecase, I wouldn't trade decimals with fractions. Rounded fractions could be a nice option though. It could appear next to the decimals when the ratio gets close enough, by a certain threshold value, to some mainstream ratios (1:1, 4:3, 16:9, 16:10...)

Jay-o-Way commented 8 months ago

Indeed. Decimal is always good. Maybe we should have a sort of "list" of common ratios/fractions and only if there's an exact match, add it in the UI. Like 1920×1080 (1.777*; 16:9)