### Channels to Layers

A Krita plugin designed to split channels from a layer to sub-layers:

- RGB
- CMY
- CMYK
- RGB as greayscale values
- CMY as greayscale values
- CMYK as greayscale values

### Screenshot

User interface to convert CMYK channel for a layer
Testing picture from Wikimedia
color model CMYK from Wikipedia

### Usage

1. Select a layer to convert
   Selected layer must be a 8bits RGBA paint layer, other layer type are not (yet?) supported
2. Execute script from Tools > Scripts > Channels to Layers
3. Choose options from user interface
   Layers management
   - New layer group name
     New layers will be grouped in a Group layer for which name is defined here.
     Possible keywords can be used to build layer name:
     {mode}: conversion mode (RGB, CMY, CMYK, ...)
     {source:name}: original layer name
   - New layers color name
     Define name for each layer created from channel.
     Possible keywords can be used to build layer name:
     {mode}: conversion mode (RGB, CMY, CMYK, ...)
     {color:short}: current channel color, short value (R, G, B, C, M, Y, K)
     {color:long}: current channel color, long value (Red, Green, Blue, Cyan, Magenta, Yellow, Black)
     {source:name}: original layer name
   - Original layer
     Define what to do with original layer
     Unchanged let original layer visibility unchanged
     Visible set original layer visibility to 'Visible'
     Hidden set original layer visibility to 'Hidden'
     Remove remove original layer
   Output results
   - Mode
     Conversion to apply
     RGB Colors Convert layer in to Red, Green, Blue color layers
     CMY Colors Convert layer in to Cyan, Magenta, Yellow color layers
     CMYK Colors Convert layer in to Cyan, Magenta, Yellow, Black color layers
     RGB Grayscale levels Convert layer in to Red, Green, Blue grayscale layers
     CMY Grayscale levels Convert layer in to Cyan, Magenta, Yellow grayscale layers
     CMYK Grayscale levels Convert layer in to Cyan, Magenta, Yellow, Black grayscale layers