Bug 416240 - Add a command line option to open an image as linked layer
Summary: Add a command line option to open an image as linked layer
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: unspecified All
: NOR wishlist
Target Milestone: ---
Assignee: confifu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-14 10:49 UTC by Tobias
Modified: 2020-04-02 13:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias 2020-01-14 10:49:45 UTC
SUMMARY
Add a command line option to open an image as linked layer.

USE CASE
For better integration of Krita into darktable it would be useful to be able to open an image not as the image itself, but as linked layer. This helps to create a non destructive workflow with Krita in the middle. 

Adding a filename for the new image is important to be able to reimport/rerender the file if changes are made in the steps before.

Workflow:
darktable (editing (e.g. WB + demosaicing + denosing -> input colour profile -> global colour adjustments))
darktable (export)
Krita     (import as linked Layer) <- This is the step we need this feature request for!
Krita     (retouching)
Krita     (export)
darktable (import)
darktable (more editing (e.g. filmic/base curve -> output colour profile))
Have a look at this discussion:
https://krita-artists.org/t/wiring-darktable-with-krita/1241

MORE USE CASES
I think, that it would be useful for the integration in the workflow of other RAW editors or 3d programs like Blender too.

UI
As I'm talking about a command line parameter here I'm not doing a mock-up. ;) But I would like the command look something like this:

krita --new-file newfile.kra --linked-layer darktable_export.exr
Comment 1 Tiar 2020-01-20 20:30:12 UTC
Instead of --linked-layer, it should be called --file-layer because that's how it's called in Krita :)
Comment 2 Tobias 2020-01-21 08:46:01 UTC
(In reply to Tymond from comment #1)
> Instead of --linked-layer, it should be called --file-layer because that's
> how it's called in Krita :)

I don't really care about the naming. ;)

krita --new-file newfile.kra --file-layer darktable_export.exr

This looks fine, too.
Comment 3 Tiar 2020-03-25 15:34:15 UTC
This is being worked on in: https://invent.kde.org/kde/krita/-/merge_requests/247
Comment 4 Halla Rempt 2020-03-29 13:22:15 UTC
Git commit 943433c17711bdab7bc09785e4d933fa341b9a96 by Boudewijn Rempt, on behalf of Saurabh Kumar.
Committed on 29/03/2020 at 13:22.
Pushed by rempt into branch 'master'.

Add a command-line option to open image as file-layer

M  +73   -3    libs/ui/KisApplication.cpp
M  +11   -4    libs/ui/KisApplicationArguments.cpp
M  +1    -0    libs/ui/KisApplicationArguments.h

https://invent.kde.org/kde/krita/commit/943433c17711bdab7bc09785e4d933fa341b9a96
Comment 5 Halla Rempt 2020-04-02 13:34:32 UTC
Git commit b727a1d6f413f0ed567a0e69f0ebd9b2515071af by Boudewijn Rempt, on behalf of Saurabh Kumar.
Committed on 02/04/2020 at 13:09.
Pushed by rempt into branch 'krita/4.3'.

Add a command-line option to open image as file-layer
(cherry picked from commit 943433c17711bdab7bc09785e4d933fa341b9a96)

M  +73   -3    libs/ui/KisApplication.cpp
M  +11   -4    libs/ui/KisApplicationArguments.cpp
M  +1    -0    libs/ui/KisApplicationArguments.h

https://invent.kde.org/kde/krita/commit/b727a1d6f413f0ed567a0e69f0ebd9b2515071af