Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit decimal places #3

Closed
LucPestille opened this issue Nov 3, 2014 · 3 comments
Closed

Limit decimal places #3

LucPestille opened this issue Nov 3, 2014 · 3 comments

Comments

@LucPestille
Copy link

On a retina Mac using Photoshop CC, it seems that the script outputs both pt and px sizing for the layer, the pt size having about 10 decimal places. You end up with something like "18.98374986345pt / 354px" as the text, which is obviously not very neat (or helpful). On a non-retina Mac with Photoshop CC, only the px size is shown.

Might be a setting somewhere in Photoshop itself, but not sure what / where. Any ideas?

@romashamin
Copy link
Owner

Hi @LucPestille,

Thanks for response.

It is not exactly about Retina. Script use points when resolution of document is not 72 pixels/inch.

I can’t understand how did you obtain a value like 18.98374986345pt. Did you use 1344 pixels/inch for your document? :-) If not, show me please a screenshot of your File ▸ New... dialog.

Anyway, you’re right — it needed to limit decimal places.

@LucPestille
Copy link
Author

Ah, that'll be it - PhotoShop had been helpful as usual by defaulting the new document res to 72.0009 ppi - my PS was fine, but my two colleagues (on retina laptops) had the issue, thought that was the common denominator.

Good script though, will save countless man hours in the long run.

@romashamin romashamin changed the title Size text shows pt / px Limit decimal places Nov 4, 2014
romashamin added a commit that referenced this issue Nov 5, 2014
@romashamin
Copy link
Owner

Solved in v1.0.

@LucPestille, reinstall the script, please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants