| Summary: | Warnings regarding HDR mode in Save -> PNG options and Render Animation dialog | ||
|---|---|---|---|
| Product: | [Applications] krita | Reporter: | Tiar <tamtamy.tymona> |
| Component: | HDR | Assignee: | Krita Bugs <krita-bugs-null> |
| Status: | CONFIRMED --- | ||
| Severity: | normal | CC: | dimula73, emmetoneill.pdx |
| Priority: | NOR | ||
| Version First Reported In: | 4.2.8 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Tiar
2020-01-26 00:58:59 UTC
Condition for checking is the color space is HDR:
bool isHDR =
(colorSpace->colorDepthId() == Integer16BitsColorDepthID &&
colorSpace->colorProfile() == KoColorSpaceRegistry::instance()->p2020PQProfile()) ||
colorSpace->colorDepthId() == Float16BitsColorDepthID || colorSpace->colorDepthId() == Float32BitsColorDepthID);
Basically, `if (!isHDR)` and the user tries to save HDR PNG image, we should warn him.
|