romashamin / Size-Marks-PS

A Photoshop™ script that makes measurement marks
MIT License
1.55k stars 168 forks source link

PT unit is shown alongside PX #28

Closed musavvirahmed closed 8 years ago

musavvirahmed commented 8 years ago

It showed measurements as PX only a minute ago, it's showing things as "334.5pt / 446px". As brilliant as this dual unit feature may be, it creates confusion for the developer.

Anyway to hide PT? and show PX only?

musavvirahmed commented 8 years ago

Okay. Issue solved.

If you LOOK at the 69th and 70th line in the .jsx file, you'll see a logic which is something like this:

MouseSelection's Resolution / (currentDocument's resolution / DefaultScreen resolution)

Normally, with a 72dpi photoshop document, if you select a 100px by 100px mouse selection, and sizeMark it, you'll get:

100px / (72/72) = 100px

If for some weird flippin' reason you (accidentally) change the documents resolution to 144dpi, you'll get:

100px / (144/72) = 50.0pt / 100px