Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

photoshop cc fixed #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion us-export-to-ios.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ init();

// The other functions
function init() {
// fix photoshop cc
// save current ruler unit settings, so we can restore it
var ru = app.preferences.rulerUnits;

// set ruler units to pixel to ensure scaling works as expected
app.preferences.rulerUnits = Units.PIXELS;

if(!isDocumentNew()) {
for(var dpi in scaleFactors) {
saveFunc(dpi);
Expand Down Expand Up @@ -147,4 +154,4 @@ function saveFunc(dpi) {

// Close the document without saving
activeDocument.close(SaveOptions.DONOTSAVECHANGES);
}
}