| Summary: | .kra-based file layer with only one layer fills the canvas with white | ||
|---|---|---|---|
| Product: | [Applications] krita | Reporter: | Nathan GDquest <nathan> |
| Component: | Layer Stack | Assignee: | Dmitry Kazakov <dimula73> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | normal | CC: | halla, raghu |
| Priority: | NOR | ||
| Version First Reported In: | 4.0.0-beta.1 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Tileset example with a file layer that fills the canvas with white | ||
+1 I can reproduce this with the attached document Hi, Nathan! I'm afraid that such behavior is "by design". The problem is that you have created corner.kra with the background's default pixel color set to white. When the image is pasted into autotile-pit.kra, this corner's layer is virtually extended into the size of the new image, therefore filling everything with it default color (white). The same thing will happen if you just D&D a layer from corner.kra into autotile-pit.kra --- it will extend to the full area. To overcome the issue, please open corner.kra, activate the layer, then press: 1) Ctrl+A 2) Ctrl+C 3) Ctrl+V 4) Ctrl+D 5) Remove the original layer 6) Ctrl+S When pasting, Krita automatically creates a layer with fully transparent pixel, that is exactly what you need for embedding the document into other files. PS: We probably need to some better UIX for dealing with the default pixel color of the layer... It makes sense! I got tricked by the fact the corner was completely painted and this fill extends to the new document's bounds. Didn't expect the latter but it's good to know. Problem solved :) |
Created attachment 110173 [details] Tileset example with a file layer that fills the canvas with white If you use a .kra document as a file layer and it has only one layer, it is not transparent: instead Krita draws the content of the kra document and fills the rest of the canvas with white. You have to add a second layer to the kra file from the file layer for it to become transparent. See the attached project.