You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce MaskBuffers and add alpha gamma + premultiply support.
- Replace std::pair<ImageBuf,ImageBuf> mask API with MaskBuffers (alpha, rgbAlpha, originalAlpha) and propagate through solidify_main and processing.
- Implement mask_load/img_load changes to extract, preserve, gamma-correct, and optionally premultiply alpha; add helper functions for extracting alpha, applying gamma, and creating alpha multipliers.
- Add new settings: Premultiply (premultiplyAlpha) and AlphaGamma with defaults and config (sldf_config.toml) support; validate/clamp values on load and print them in diagnostics.
- UI updates: reorganize Alpha menu (Use Alpha, Premultiply, Gamma control), rename some menu labels, and add compact input layout helper.
- Adjust image I/O behavior (UnassociatedAlpha flag change) and handle original alpha buffers when needed.
- Update and add unit tests covering mask gamma handling, preserving original alpha, and premultiply behavior; update settings tests to include new fields.
This refactor ensures mask and embedded alpha are handled with configurable gamma correction and optional premultiplication, while preserving original alpha data for export or further processing.
0 commit comments