Changing pixels per cm to pixels per inch

IC
Posted By
Ian_Cameron
Jul 2, 2007
Views
1362
Replies
5
Status
Closed
I work for a software company that makes software to work with Photoshop, and one of our clients is having an issue where his images are always coming up with pixels per cm as the measurement. We have tried changing the Photoshop preferences to use pixels per inch, but this doesn’t change. On my system, it always comes up as pixels per inch. Is there another place where these settings can be changed?

The software that we make uses Photoshop scripting to set the image information, and our software always uses pixels per inch. The client is using Windows XP, and connects to Photoshop CS2.

How to Master Sharpening in Photoshop

Give your photos a professional finish with sharpening in Photoshop. Learn to enhance details, create contrast, and prepare your images for print, web, and social media.

C
chrisjbirchall
Jul 2, 2007
If your client is, for instance, using "rulers" and changing the unit of measurement to cm (in a script or action perhaphs), that in turn will override the Preferences and set Photoshop to globally use cpi instead of ppi.
GD
george_dingwall
Jul 2, 2007
Hi Ian,

If you are using scripts you need to wrap the script in some controls in order to preserve the ruler units that are set in the preferences.

Something like this.

var originalRulerUnits = preferences.rulerUnits;
preferences.rulerUnits = Units.PIXELS;

– – – – – – – – – –
Body of script here
– – – – – – – – – –

preferences.rulerUnits = originalRulerUnits;

This will preserve whatever the ruler units are in the preferences, change them to Pixels for the duration of the script and then change them back to the original settings when the script is done.
B
Bernie
Jul 2, 2007
Photoshop to globally use cpi instead of ppi.

Hum, that would be ppc instead of ppi
C
chrisjbirchall
Jul 2, 2007
cpi = clown posts incorrectly

or

chris prefers inches

or

cybe’s pedantic intervention

or… ?

πŸ™‚
B
Bernie
Jul 2, 2007
cybe’s pedantic intervention

touchΓ©

πŸ™‚

Must-have mockup pack for every graphic designer πŸ”₯πŸ”₯πŸ”₯

Easy-to-use drag-n-drop Photoshop scene creator with more than 2800 items.

Related Discussion Topics

Nice and short text about related topics in discussion sections