Issue #1070: exporting to jpeg from 32-bit float linear image...
... produces jpeg in linear color space. The problem was that we were anyway always exporting to non-linear while attaching a linear profile. A first approach would have been to export in linear instead when the work image is linear, as proposed by mitch in a first version of the patch. Yet as Elle Stone notes, it is not a great idea to export 8-bit images as linear. Instead let's continue to always export as non-linear, as we were already doing. Yet when we also save a profile, and this one was originally linear, let's convert it to sRGB TRC before exporting.
Showing with 44 additions and 3 deletions