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 Improve Photoshop Performance

Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!

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é

🙂

Master Retouching Hair

Learn how to rescue details, remove flyaways, add volume, and enhance the definition of hair in any photo. We break down every tool and technique in Photoshop to get picture-perfect hair, every time.

Related Discussion Topics

Nice and short text about related topics in discussion sections