bin: profile-aware babl format defaults.
authorJehan <jehan@girinstud.io>
Wed, 17 Aug 2022 13:53:25 +0000 (15:53 +0200)
committerJehan <jehan@girinstud.io>
Wed, 17 Aug 2022 13:53:25 +0000 (15:53 +0200)
commit035c7b7661c90e264bbf06ecc9f25fc1e0d3c03c
tree42ff0dc1e0389356369dec3c010336c9e777bdb1
parentd72b5dd658091142fd8990e8ec3c7f9d7c50a3fc
bin: profile-aware babl format defaults.

Instead of always defaulting to "R'G'B' float", if a input/output
profile was set, check if it's CMYK, grayscale or RGB.

The defaults are:
* For a CMYK profile: "CMYK float"
* For a grayscale profile: "Y' float"
* For anything else (or no profile): "R'G'B' float"
bin/babl.c