Bug 413857

Summary: Separate Image > Output to color labels channels incorrectly with higher bit depth documents
Product: [Applications] krita Reporter: M <manuel.snudl.zeidler>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: halla
Priority: NOR    
Version: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description M 2019-11-05 21:50:12 UTC
SUMMARY
Using Image > Separate Image... with the enabled option "Output to color, not grayscale" confuses the separated channels if the image uses anything else than 8-bit per channel. All color models I tested (RGB, LAB, CMYK) produced the issue.

STEPS TO REPRODUCE
1. Open an image that uses 16 or 32-bit per channel
2. Use Image > Separate Image... and enable the Output to color checkbox
3. Hide the original layer(s), inspect the separated layers

OBSERVED RESULT
Channel layers can be swapped or empty, so the full color image cannot be assembled correctly.

EXPECTED RESULT
Correctly split channels, same as with 8-bit depth.

SOFTWARE/OS VERSIONS
Tested in master (git 179649c) and 4.2.7.1 from distro repos, both showing the same issue.

ADDITIONAL INFORMATION
Small usability gripe - Using the new "Activate the current channel" option that's present in master will give all channel layers the Inherit Alpha property, so they can't be seen unless there is a solid layer behind them.
Comment 1 Halla Rempt 2019-11-06 09:36:37 UTC
At