Scripting a Photoshop Action: Convert Image to Indexed Color (Perceptual) and Save Color Table
Hi everyone,
I'm trying to create a Photoshop script that performs two main tasks, regardless of the initial color mode of the open image (e.g., RGB, CMYK, Grayscale).
1. Convert the image to Indexed Color. The specific settings I need are:
- Palette: Perceptual (Local Adaptive)
- Colors: 128
2. Save the resulting color table (also known as the color palette) to a specific destination folder.
I've been looking through the Photoshop scripting API but am having trouble finding the exact commands or syntax to achieve this, especially for the "Local Adaptive" option and saving the color table.
Could someone please provide a code snippet or point me in the right direction? I'm primarily working with JavaScript (JSX) for this.
Any help would be greatly appreciated!
Thanks
