Summary: | Flattened image won't export to Photoshop (Colorspace differences) | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | ken jacobsen <ken> |
Component: | Brush engines | Assignee: | Halla Rempt <halla> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dimula73, ghevan, halla, penguinflyer2222 |
Priority: | NOR | ||
Version: | 5.2.1 | ||
Target Milestone: | --- | ||
Platform: | macOS (DMG) | ||
OS: | macOS | ||
Latest Commit: | https://invent.kde.org/graphics/krita/-/commit/28a8d2d4d5a67c6e398511a7501bd1b8afc42b23 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | The file that won't export to Photoshop |
Description
ken jacobsen
2024-08-26 21:38:52 UTC
I can confirm the bug in master with the file provided. I have not look deep enough yet, but manipulating the image and layers from the GUI does not fix the issue. There is a hidden layer in the file called "decorations-wrapper-layer" with a color profile of sRGB-elle-V2-srgbtrc.icc, which is caused by "Show Guides" being on. Turning off "Show Guides" lets the file export as PSD. Something like diff --git a/libs/impex/ColorModelHomogenousCheck.h b/libs/impex/ColorModelHomogenousCheck.h index 494791e538..7bdf576c1c 100644 --- a/libs/impex/ColorModelHomogenousCheck.h +++ b/libs/impex/ColorModelHomogenousCheck.h @@ -84,7 +84,7 @@ private: bool check(KisNode * node) { KisLayer *layer = dynamic_cast<KisLayer*>(node); - if (layer) { + if (layer && layer->name() != "decorations-wrapper-layer") { const KoColorSpace * cs = layer->colorSpace(); if (cs->colorModelId() != m_colorModelID || cs->colorDepthId() != m_colorDepthID) { Should prevent this warning from happening, but I wonder how many other layer visitors need the same thing. Hi, Halla! You should use `KisBaseNode::isFakeNode()` for skipping non-exportable nodes. Right! Will do. Git commit 02671ca7e0b77c2dc5d90f4b237f28b470557a72 by Halla Rempt. Committed on 27/08/2024 at 08:57. Pushed by rempt into branch 'krita/5.2'. Check whether a layer is fake The homogenous check should disregard fake nodes. M +1 -1 libs/impex/ColorModelHomogenousCheck.h https://invent.kde.org/graphics/krita/-/commit/02671ca7e0b77c2dc5d90f4b237f28b470557a72 Git commit 28a8d2d4d5a67c6e398511a7501bd1b8afc42b23 by Halla Rempt. Committed on 31/08/2024 at 10:56. Pushed by rempt into branch 'master'. Check whether a layer is fake The homogenous check should disregard fake nodes. (cherry picked from commit 02671ca7e0b77c2dc5d90f4b237f28b470557a72) M +1 -1 libs/impex/ColorModelHomogenousCheck.h https://invent.kde.org/graphics/krita/-/commit/28a8d2d4d5a67c6e398511a7501bd1b8afc42b23 |