indexed color document

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

jerry sedgewick

indexed color document

Post by jerry sedgewick »

I hope this there is a simple answer. I'd like to write an IF ELSE statement to deal with indexed color images differently. I'd like to do something different to images that are NOT indexed color. How to refer to an image in photoshop as an indexed color document? I couldn't find a reference in the scripting guide...

Thanks!

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

Mikaeru

indexed color document

Post by Mikaeru »

Code: Select allif (app.activeDocument.mode === DocumentMode.INDEXEDCOLOR)
{
    // Indexed color
}
else
{
    // NOT indexed color
}