Skip to main content
Participant
December 24, 2024
Question

Need scripts for a custom colour curve

  • December 24, 2024
  • 2 replies
  • 200 views

Hello 

Merry Christmas to all.

Thanks to Paul Riggott,

https://community.adobe.com/t5/photoshop-ecosystem-discussions/easy-way-to-extract-all-pixel-lab-values-please-help/m-p/3819899,

i have a CSV file with XY coordinates and LAB value of each pixel extracted from a PSD file. I do some modifications to the LAB value in the CSV file and wish to apply the modification as a LAB colour curve through script in Photoshop either in the same file or in a different file. Photoshop by default support only 16 adjustment points with full integers. But i wish to enter decimals upto 3 points and en number of adjustment points in the curve.  Is this something that can be achieved through scripts.

 

Many thanks in advance for all your help.

This topic has been closed for replies.

2 replies

c.pfaffenbichler
Community Expert
Community Expert
December 26, 2024

What kind of modifications exactly? 

 

I am not up-to-speed on UXP Scripting but I suspect that might fit the task better. 

Stephen Marsh
Community Expert
Community Expert
December 24, 2024

It sounds like it would be "better" to use the modified CSV to recolour pixel by pixel. :]

 

That was only a half serious suggestion. Why don't you just edit the file in Lab mode without any pixel to CSV values?

davescm
Community Expert
Community Expert
December 26, 2024

An alternative process could be to start with your image in Lab mode, add your adjustments as adjustment layers then export an abstract ICC profile. You can load that back as a LUT onto other Lab images.

You could also edit the abstract ICC profile using an ICC profile reader/editor if you want further accuracy.

 

Note I just tested it and could not the resulting profile to work when created at 256 points - 128 worked fine though, and is far more points than in a curve
https://helpx.adobe.com/uk/photoshop/using/export-color-lookup-tables.html

Dave