psd_tools.psd.color_mode_data

Color mode data structure.

ColorModeData

class psd_tools.psd.color_mode_data.ColorModeData(value: bytes = b'')[source]

Color mode data section of the PSD file.

For indexed color images the data is the color table for the image in a non-interleaved order.

Duotone images also have this data, but the data format is undocumented.

interleave()[source]

Returns interleaved color table in bytes.