Copy link to clipboard
Copied
Hi guys I am trying to convert color profile to "Adobe RGB (1998)", running
doc.convertProfile("Adobe RGB (1998)", Intent.RELATIVECOLORIMETRIC, true, true);
it doesn't seem to change anything
however running
doc.colorProfileName = "Adobe RGB (1998)"
changes visially colours of the image, but the color settings menu still show old color space profile:
Try:
activeDocument.convertProfile("Adobe RGB (1998)", Intent.RELATIVECOLORIMETRIC, true, true);
However, from your assign test, it sounds like you have correctly declared the doc variable (even if you didn't post it in your code sample).
The code is valid at the active document level, not at the parent application level.
Set your staus bar at the lower left to show the doc profile, as convert to profile shouldn't show a visual change in many cases for RGB files:
https://theiviaxx.github.io/photoshop-docs/Photoshop/Document/convertProfile.html
...Copy link to clipboard
Copied
You are misunderstanding several points, and would see the same (correct) results if using Assign profile vs Convert to profile in the user interface.
1. Converting to a new profile is not supposed to change the appearance - that is the whole point. The appearance changes only if there are gamut limitations.
2. Appearance changes when you assign a profile, unless it is effectively identical for the colours used. 3. The preferences you post are the default, to be used in a new document, and to be checked on opening (optional). They have nothing to do with the assigned or converted profile in the current document, and are not changed.
4. You can check the assigned profile using the option in the status bar at the bottom of the image.
Copy link to clipboard
Copied
Try:
activeDocument.convertProfile("Adobe RGB (1998)", Intent.RELATIVECOLORIMETRIC, true, true);
However, from your assign test, it sounds like you have correctly declared the doc variable (even if you didn't post it in your code sample).
The code is valid at the active document level, not at the parent application level.
Set your staus bar at the lower left to show the doc profile, as convert to profile shouldn't show a visual change in many cases for RGB files:
https://theiviaxx.github.io/photoshop-docs/Photoshop/Document/convertProfile.html
https://theiviaxx.github.io/photoshop-docs/Photoshop/Application/colorSettings.html
Copy link to clipboard
Copied
Yes doc is set to active doc, I have set the profile in theleft bottom corner and it shows correct profile, but color settings don't
var doc = app.activeDocument;
Copy link to clipboard
Copied
>> it shows correct profile, but color settings don't <<
I'm sorry you did not read my reply. I repeat: "3. The preferences you post are the default, to be used in a new document, and to be checked on opening (optional). They have nothing to do with the assigned or converted profile in the current document, and are not changed. "
Copy link to clipboard
Copied
@Evgenii Fil wrote:
I have set the profile in theleft bottom corner and it shows correct profile, but color settings don't
That is correct and expected behaviour. There is no reason for Color Settings to change. Why do you expect them to change?
Consider the Document Object Model (DOM). You are targeting the document when using the Convert or Assign commands – you are not targeting the application.
Just as when manually performing the tasks, scripting is the same – the document is being changed, not the application's Color Settings.
Colour management in Adobe software is designed to have document-level ICC profiles which are independent of the ICC profiles set in the application's Color Settings.