Skip to main content
ChristianK-Fr
Inspiring
October 19, 2023
Question

JavaScript to store color from selection

  • October 19, 2023
  • 1 reply
  • 372 views

Hi, I'm looking for a way to do this with a script but didn't know if it's possible : 

- From a selected image with a path, 

- made a selection from the path

- then looking inside the selection and give the value of the dominant color, 

with the values in high range, middle range and low range.

(this what I'm looking in particular : identify the color inside the selection in the low, middle and high range)

Store the values to adjust others images with this values ( apply the values stored)

Do you thing it's possible to made it ? 

In fact, the finality is to do this : from reference image take the value of the color and then adjust all others images with the correct color in the selection.

Regards, Christian

This topic has been closed for replies.

1 reply

Legend
October 19, 2023

Your selection is half black and half white. What values are you storing?

ChristianK-Fr
Inspiring
October 20, 2023

Hi if you see image, selection is made from the path, to select the t-shirt. I need to determine the color of the T-Shirt only, and to have the best intent to reproduce the same color on other images , the value in high, middle and low range. 

In the example, I mannually pick up the colors in these aera, but is there a way to Photoshop made it itself  via a script : determine from inside selection ? Regards, Christian

Legend
October 20, 2023

You still aren't clear about what colors to store.