Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

JavaScript to store color from selection

Participant ,
Oct 19, 2023 Oct 19, 2023

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.

test.png

Regards, Christian

TOPICS
Actions and scripting
340
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
LEGEND ,
Oct 19, 2023 Oct 19, 2023

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Oct 20, 2023 Oct 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 20, 2023 Oct 20, 2023

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Oct 23, 2023 Oct 23, 2023
LATEST

Ok maybe with another example : you see pink nightie :  I would like to have variations in color depending on the light. So that's why I need in high, middle and low range. Maybe my english is not good ( or Google translate...)color values .png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines