Draft: Issue #52: First steps for full CMYK mode

This patch is an attempt to fulfill the prophecy and resolve #52

Current features:

  • Convert to CMYK with color profile! (Slowly)
  • Toggle the visibility and sensitivity of the CMYK channels! (Slowly)
  • Apply filters (most still work) (Slowly)
  • Color pick with CMYK as the default Pixel format in the info window!
  • Convert back to RGB/Grayscale/Indexed when you sadly realize saving and export doesn't yet work!
  • Update 1
  • Import CMYK JPEGXL, TIFF, JPEG, PSD, and JPEG 2000 as CMYK images (and optionally use a different CMYK profile)!
  • Export CMYK JPEGXL, TIFF, JPEG, and PSD without an RGB -> CMYK conversion!
  • Export most other image formats (converted to RGB, so colors will be altered)!
  • Convert back to RGB/Grayscale/Indexed when you realize painting is a bit glitchy!

Some next steps:

  • Update export options with HANDLE_CMYK option, add conversion to RGB for most format, and switch over CMYK-capable formats to import and export without conversion
  • Review gimpoperationmaskcomponents.cc to naturally support CMYK channels (the current implementation is a partial hack)
  • Remove more built-in assumptions about colors being RGBA.
  • Improve speed (caching, optimization?)
Edited by Alx Sa

Merge request reports

Loading