PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Add "Scale" setting to Screen Ruler to match Window's scaling features

Open JacobDB opened this issue 3 years ago • 15 comments

Description of the new feature / enhancement

When "Scale" is set to a value other than 100%, that value is used to adjust the output value of Screen Ruler's measurements.

Scenario when this would be used?

When building a website on a display set to anything other than 100% Scale, taking measurements becomes very complicated. For example, if within Windows Display settings, I set "Scale" to "150%", an element set to width: 100px; will render as 150px wide, and Screen Ruler will output the render width rather than the specified width.

This creates difficulty when trying to compare a design to a mockup, or even to accurately take measurements between elements. Adding a "Scale" feature to Screen Ruler, which would match the Windows Display "Scale" feature, and basically "undo" the scaling via math, would dramatically simplify this process.

Supporting information

No response

JacobDB avatar Sep 06 '22 21:09 JacobDB

Thank you for the suggestion, we'll implement it in the next release.

yuyoyuppe avatar Sep 06 '22 21:09 yuyoyuppe

Has the mentioned feature been implemented or has it not been completed yet? (I experienced the same behavior in Powertoys v0.70.1)

nemalsomel avatar Jun 27 '23 08:06 nemalsomel

I haven't seen any movement on this, I'd like a status update as well. I'd love to use this tool, but I simply can't without this feature.

JacobDB avatar Jul 03 '23 15:07 JacobDB

I agree, the tool is useless on hi-dpi screens

danieljetbrains avatar Jul 13 '23 16:07 danieljetbrains

My opinion is that screen rules should measure pixels. A developer has to be aware of (and test for) scaling anyway and a user should simply be aware of the scaling they're using. But that's me.

Jay-o-Way avatar Aug 01 '23 15:08 Jay-o-Way

@Jay-o-Way that's fine if that's what you prefer, but I don't see why adding a setting for this would be an issue. If you don't want to use it, simply don't turn on the setting. For me, I find it really annoying having to constantly multiple things by 0.6667 to get accurate numbers to use with CSS. I'm well aware of my scaling factor, and do account for it, but why is it better to have to take the extra step of pulling out a calculator to do the conversion, rather than just doing the conversion automatically?

JacobDB avatar Aug 01 '23 15:08 JacobDB

Has this issue been handled already?

amrmabdelazeem avatar Nov 27 '23 13:11 amrmabdelazeem

@amrmabdelazeem I don't think so, I've yet to see a setting for it.

JacobDB avatar Nov 27 '23 13:11 JacobDB

Yes. I think it can also show two results together, actual pixel and "scale adjusted" pixel. Actually, "scale adjusted" pixel is more useful in most cases, especially for website and UI related work. If you are not doing these kinds of work, why would you need this tool?

frozenwind85 avatar Jan 10 '24 21:01 frozenwind85

@frozenwind85, where is the setting for this? It only shows me one measurement; the unscaled measurement. It doesn't give me both. And in fact, I am doing website and UI related work, which is why I want scaled numbers, or ideally both. Not sure why you'd assume otherwise 🤔

JacobDB avatar Jan 10 '24 22:01 JacobDB

My opinion is that it's good to remember what the real pixels are. But adding the factor and/or scaled pixels next to that is good too. Maybe something like "480 × 150% = 720".

@frozenwind85 there is no such setting. Maybe some day.

Jay-o-Way avatar Jan 11 '24 11:01 Jay-o-Way

I don't know what the use case is for wanting to measure real pixels. This tool is useless to me as a web developer using high DPI monitors. Please add this as an option.

sethlivingston avatar Jan 18 '24 12:01 sethlivingston

Pretty please add this feature!

geekyval avatar Feb 28 '24 21:02 geekyval

Yes. I think it can also show two results together, actual pixel and "scale adjusted" pixel. Actually, "scale adjusted" pixel is more useful in most cases, especially for website and UI related work. If you are not doing these kinds of work, why would you need this tool?

Exactly - the main users of this ruler tool are probably doing something like web dev / UI work. We all need big monitors to see as much design/code as possible, this is probably a common problem for users of Screen Ruler.

sbkates avatar Jun 05 '24 19:06 sbkates