Bug 135189 - Recombining different layers into one image (inverse of image separation)
Summary: Recombining different layers into one image (inverse of image separation)
Status: CONFIRMED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-06 11:37 UTC by Rutger Claes
Modified: 2020-04-03 00:19 UTC (History)
2 users (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 Rutger Claes 2006-10-06 11:37:20 UTC
Version:           1.5.0 (using KDE 3.5.2, Kubuntu Package 4:3.5.2-0ubuntu18.1 dapper)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.15.7-ubuntu1

It would be nice to have the inverse operation of "Image separation"

Usecases:

I have a digital photograph loaded in Krita.  I convert the image to L*a*b colorspace.  I separate the image producing 3 layers.  I invert the L layer (Using an adjustment layer on top of the L layer and a group layer to group the inverting layer and the L layer).  I recombine the three layers (Group layer, a layer and b layer) into one with inverted Lightness.

I have a digital photograph loaded in Krita.  The image is in RGB colorspace.  I separate the image producing 3 layers and recombine the image using the Red layer as the Green and the Green as the Red layer.  I have a new image with the Red and Green channel switched.

I have a digital photograph loaded in Krita.  The image is loaded in L*a*b colorspace.  I separate the image. Edit the Lightness layer.  And recombine the layers.  I have a new image with altered lightness.

When combining layers into one image, Krita should ask me what colorspace to use for the recombination and asks me to select a layer for every channel in that colorspace.  The resulting image could be opened in a new window, the selected source layers could be removed and replaced by the resulting layer or all layers could be removed and replaced by the resulting layer (the way flatten image behaves).

If this feature - or anything that accomplishes the same result - is allready present in Krita, please tell me where.  This would be a nice feature I think.  It would allow the creation of images like: http://www.digitalfieldguide.com/blog/636 and illusions like: http://www.johnsadowski.com/big_spanish_castle.php
Comment 1 Cyrille Berger 2006-10-06 13:44:13 UTC
If I understand you correctly, you in fact want to apply invert (or any other effect) only on the channel L ? At least it sounds easier than splitting the image and then recombine it. Anyway what I just described is a plan feature, and first work to achieve this has started :)
Comment 2 Halla Rempt 2006-10-06 15:00:48 UTC
On Friday 06 October 2006 11:37, Rutger Claes wrote:
> When combining layers into one image, Krita should ask me what colorspace
> to use for the recombination and asks me to select a layer for every
> channel in that colorspace.  The resulting image could be opened in a new
> window, the selected source layers could be removed and replaced by the
> resulting layer or all layers could be removed and replaced by the
> resulting layer (the way flatten image behaves).


That's something on my todo -- as is making it possible for filters and 
painting to work on a subset of channels in a single layer.
Comment 3 Rutger Claes 2006-10-06 18:22:17 UTC
Applying paintings and filters to individual channels would cover the first and last usecase.  The switching of RGB channels (not something I really plan on doing) would not work.  But that is a real, real good start :-)  So yes, just applying filters and paintings to a subset of channels would be just fine for me.

Happy to see that this is a planned feature.
Comment 4 Stefan Mueller 2006-12-31 11:57:48 UTC
related Bug 121975: Copy merged or copy layers cropped
Comment 5 Dik Takken 2007-07-31 20:23:42 UTC
I often use this function to split images in 3 seperate ones (LAB). Then I edit the images using other graphics applications, import them again, and reconstruct the original image. 

This allows me to apply filters offered by other applications to one particular channel, even if those applications do not support LAB color spaces.

Adding this to Krita would be really cool. The way it is done in CinePaint works very well: You select 'Compose' from the 'Channel Operations' menu, then you assign layers to the individual LAB channels.
 
Comment 6 Halla Rempt 2007-12-06 20:53:03 UTC
There's a skeleton plugin in Krita trunk now, it just needs to be fleshed out.
Comment 7 Halla Rempt 2016-01-24 15:17:52 UTC
WISHGROUP: Larger Usability Fixes

It's still relevant...
Comment 8 Tiar 2020-04-03 00:19:40 UTC
It could be easily a Python plugin, couldn't it?