Copy link to clipboard
Copied
Добры день! Помогите разобраться с проблемой!
На MacOS установлен Adobe Photoshop (выпуск 22.2.0)
Задача: Преобразовать кучу файлов из RGB в многоканальный профиль.
Делаю через Автоматизация - Пакетная обработка с помощью заранее созданной Операции.
Проблема: На каждом файле при применении операции возникает окно в выбором профиля, нужно перевыбрать уже выбранные многоканальный профиль (иначе почему-то применяется профиль Grey) и нажать ОК. При этом теряется смысл автоматизации, так как это действие придётся делать несколько тысяч раз.
Прошу, подскажите решение данной проблемы! Спасибо!
Copy link to clipboard
Copied
»Good afternoon! Help me deal with the problem!
MacOS is running Adobe Photoshop (release 22.2.0)
Task: Convert a bunch of files from RGB to a multi-channel profile.
I do it through Automation - Batch Processing with a pre-created Operation.
Problem: On each file, when applying an operation, a window appears in the profile selection, you need to reselect the already selected multichannel profile (otherwise for some reason the Grey profile is used) and click OK. At the same time, the point of automation is lost, since this action will have to be done several thousand times.
Please, tell me a solution to this problem! Thank you!«
I am not sure Scripting can circumvent the dialog but could you provide the Multichannel Profile (or a similar one) for testing?
Please also post a screenshot of the Batch-settings and of the fully expanded Action in the Actions Panel?
Copy link to clipboard
Copied
На скринах видно развернутую операцию и окно возникающее при выполнении операции. На одном видно что при появление картинка серая, хотя выбран многоканальный профиль, при котором она должна быть цветной. На другой картинке видно, что изображении стало цветным, это происходит когда мы просто перевыбераем тот же профиль.
Многоканальный профиль можно взять совершенно любой для проверки, думаю результат будет такой же. К сожалению профиль нельзя приложить к сообщению.
Copy link to clipboard
Copied
»The screenshots show the expanded operation and the window that appears when the operation is performed. On one of them, you can see that when the picture appears, it is gray, although a multi-channel profile is chosen, in which it should be colored. In another picture, you can see that the image has become colored, this happens when we simply reselect the same profile.
You can take a multi-channel profile absolutely any for verification, I think the result will be the same. Unfortunately, the profile cannot be attached to the message.«
Thank you; unfortunately ESTK Scripting seems to provide no solution and triggers the same problems.
Maybe UXP Scripting would handle it better, but that’s beyond my reach.
A crude work-around might be using Automator (or some other tool) to record/automate keystrokes/mouseclicks.
Copy link to clipboard
Copied
I can reproduce this issue in PS2021, looks like a bug.
Copy link to clipboard
Copied
I can reproduce this issue in PS2021, looks like a bug.
By @Stephen Marsh
Yeah, but as using multichannel profiles might be called a fairly »niche« task I doubt a timely fix will be forecoming, much less in time for the original poster’s timeframe.
Copy link to clipboard
Copied
I'll test it, however UXP BatchPlay is the equivalent of ScriptingListner, so it's probably going to have the same issue as an action.
Copy link to clipboard
Copied
I had better results using UXP .psjs in interactive mode with the popup dialog, which defeats the purpose, but at least the conversion wasn't inverted grayscale!
When I tried "dontDisplay" it didn't work.
I tried the native Photoshop JavaScript conversion and also Alchemist.
// UXP BatchPlay .psjs code recorded with Alchemist, not legacy ExtendScript .jsx
const {executeAsModal} = require("photoshop").core;
const {batchPlay} = require("photoshop").action;
async function actionCommands() {
const result = await batchPlay(
[
{
_obj: "convertToProfile",
_target: [
{
_ref: "document",
_enum: "ordinal",
_value: "targetEnum"
}
],
to: "Alliance ECG.icc",
intent: {
_enum: "intent",
_value: "colorimetric"
},
mapBlack: true,
dither: false,
rasterizePlaced: false,
shadowMode: 5,
_options: {
dialogOptions: "display" // "dontDisplay"
}
}
],
{}
);
}
async function runModalFunction() {
await executeAsModal(actionCommands, {"commandName": "Action Commands"});
}
await runModalFunction();
The ICC profile used in this test:
https://idealliance.org/specifications/expanded-color-gamut-ecg-project/
Copy link to clipboard
Copied
Даже если, это проблема решится далеко в будущем, это тоже будет хорошо. Пусть даже сейчас эту работу придётся выполнить в ручном решиме, то может в следующий раз можно будет воспользоваться полноценной автоматизацией.
Copy link to clipboard
Copied
If there are thousands of images to convert I would recommend looking for alternatives …
I am naturally not trying to discourage anyone from using Photoshop but for this task and at this volume it might be useful to look for more specialized applications.
Copy link to clipboard
Copied
If there are thousands of images to convert I would recommend looking for alternatives …
I am naturally not trying to discourage anyone from using Photoshop but for this task and at this volume it might be useful to look for more specialized applications.
By @c.pfaffenbichler
Agreed 100%.
This is a niche feature, so outside of macro apps to simulate mouse movements and keystrokes, you will need to look into more specialised prepress software. You can batch convert the images to PDF, then you could use Enfocus PitStop Server for batch multichannel profile conversion, this isn't cheap, but in this niche category it's probably going to be cheaper than dedicated colour server software. You would need to verify that the particular multi-channel profile is supported though, make no assumptions.
EDIT: I may been confused, PitStop Pro/Server can convert using standard or DeviceLink profiles, however, I'm not sure if it can use Multichannel profiles.
Copy link to clipboard
Copied
That sounds interesting!
They seem to offer a trial, so it should be possible to verify if the results fit the needs quality-wise etc.