Skip to main content
StrongBeaver
Legend
October 3, 2011
Question

Embedding Color Profile into Script ?

  • October 3, 2011
  • 2 replies
  • 10460 views

I want to embedded a color profile into a script and run the script would change the color profile.

This topic has been closed for replies.

2 replies

TheDigitalDog
Inspiring
March 21, 2023

What and where are all these hundreds of profiles originating from?

Author “Color Management for Photographers" & "Photoshop CC Color Management/pluralsight"
JJMack
Community Expert
Community Expert
October 3, 2011

From the Photoshop  javascript  manual

convertProfile (destinationProfile, intent [, blackPointCompensation] [, dither])

string

Intent

boolean

boolean

Changes the color profile.

The destinationProfile parameter must

be either a string that names the color

mode or Working RGB, Working CMYK,

Working Gray, Lab Color (meaning one

of the working color spaces or Lab color).

Intent

ABSOLUTECOLORIMETRIC

PERCEPTUAL

RELATIVECOLORIMETRIC

SATURATION

The rendering intent to use when

converting from one color space to

another with

Document.convertProfile() or

JJMack
StrongBeaver
Legend
October 3, 2011

I don't follow completely.  If you can embedded profiles how come you can't embedded brushes / tool presets ?

StrongBeaver
Legend
October 25, 2011

Assigning a Color Profile from a Script

The goal is save a custom ICC profile as a script.  Load this profile which is a script , no dependence on manually assigning the profile to the composition, speeding up workflow. Executing the script assigns the color profile to the composition, it does not convert the color profile that remains the same, for now.

Loading and Saving Brushes & Brush ToolSets

When I want to save a Brush or Tool Preset to the script (menu) I am given the option on wheather I want to save the Brush / Tool Set Preset to the location that photoshop would normally save the Brush / Tool Set Preset or to the menu. If the menu is choosen the Brush / Tool Set Preset would appear and a icon representing the Brush or the Tool Set Preset in which the preset was saved with.  Selecting the brush icon you could delete the brush if needed, all the brushes and tool set presets are saved in the script, they are not loaded externally from within a folder they are all saved in the script.  Re-locating or moving the menu to another computer keeps things organized without having to search for the brushes from photoshop and then copy and paste, this makes moving the custom photoshop workflow to another computer painless and your desired brushes and tool presets follow you no worry of loss if PC failure / photoshop re-install etc.

I want to make this all a reality, if there are things that may have to be changed or routed differently please explain so it can be compleated, as I look forward to it.


Can I get help getting both of these completed within a week as I need to complete my menu.