Jump to content
Adil

Inverting "L" channel in LAB Colour space

Recommended Posts

I saw a recent YouTube video of someone using a Lightbox to take macro images. They looked great but looked better when they inverted the white background to become black. The method they used to do this in photoshop was relatively straight forward. They changed the colour gamut to LAB profile for the image they were editing in PS. The "L" channel holds the black and white details and there is an option in PS to invert this channel. I am trying to find a way to replicate this process with Affinity Photo and cannot see to find a way to invert a channel.

Anyone have any ideas?

Thanks

Share this post


Link to post
Share on other sites

If I understand what you want to do correctly, in AP change the color format to LAB/16 via the Document > Convert Format/ICC Profile menu option, then in the Channels Studio panel, make sure the pixel layer (probably named "Background by default) is selected, right click on Lightness (probably named "Background Lightness") & choose "Invert" from the menu that pops up.

If there are foreground objects you do not want inverted, first select them with the 'marching ants' selection tools, refine that selection as needed, & invert the selection (via the Select > Invert Pixel Selection menu item) before doing the above. (You can do it the other way around by selecting all the background, excluding the foreground, but it is often easier to select the foreground & invert that.)

Then do a copy & paste to add the foreground as a separate layer (so it won't be inverted), reselect the original background layer & then invert that layer via the Channels panel.


Affinity Photo 1.8.3, Affinity Designer 1.8.3, Affinity Publisher 1.8.3; macOS Mojave 10.14.6 iMac (27-inch, Late 2012); 2.9GHz i5 CPU; NVIDIA GeForce GTX 660M; 8GB RAM
Affinity Photo 
1.8.3.180 & Affinity Designer 1.8.3.2 for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 13.3.1

Share this post


Link to post
Share on other sites

Hi thanks for this however was not able to do what you said.

 

From the screenshot below the image is loaded in LAB colour profile. 

The channels available are:

  • Composite Lightness
  • Composite AOpponent
  • Composite BOpponent
  • Composite Alpha

If I right click on the Composite Lightness channel whilst back ground pixel is selected the choices I get are as follows:

  • Toggle Visible
  • Toggle Editable
  • Load to PIxel Selection
  • Add to PIxel Selection
  • Subtract from Pixel Selection
  • Intersect with Pixel Selection
  • Create Spare Channel

There is no option to invert channel.

An example of what a finished product looks like before and after inversion is shown below (Not my work). As you can see from the example given by inverting white to black effectively effects all of the original colours - this is the effect I am trying to achieve with the first image below.

"Invert Channel" does not appear when searching for help?

Any ideas would be appreciated.

 

 

 

 

Screenshot 2020-05-23 at 13.32.04.jpg

Screenshot 2020-05-21 at 15.29.25.png

Screenshot 2020-05-21 at 15.30.12.png

Share this post


Link to post
Share on other sites
1 hour ago, Adil _P said:

The channels available are:

  • Composite Lightness
  • Composite AOpponent
  • Composite BOpponent
  • Composite Alpha

With the "Background (Pixel)" layer selected, try scrolling down in the Channels panel. Below the  composite channels, you should see 5 more items, including the "Background Lightness" item I mentioned.

992054216_Channelspanel.jpg.95a027071ff4e22e198dfd8f407ebe4d.jpg

BTW, I find it useful to set the "Show scroll bars" option in System Preferences > General to "Always" on my Macs so there is never any confusion over whether or not I am seeing everything there is in a window.


Affinity Photo 1.8.3, Affinity Designer 1.8.3, Affinity Publisher 1.8.3; macOS Mojave 10.14.6 iMac (27-inch, Late 2012); 2.9GHz i5 CPU; NVIDIA GeForce GTX 660M; 8GB RAM
Affinity Photo 
1.8.3.180 & Affinity Designer 1.8.3.2 for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 13.3.1

Share this post


Link to post
Share on other sites

An alternative solution: open the image file, add a Curves Adjustment, change the adjustment's mode to LAB, change its target channel from Master to Lightness, and then invert the curve (drag bottom left node to top left and drag top right node to bottom right).

502277402_ScreenShot2020-05-23at19_24_39.png.6fc6085dbfce3d2835b0e9042520adb7.png

 

Share this post


Link to post
Share on other sites
45 minutes ago, anon2 said:

An alternative solution: open the image file, add a Curves Adjustment, change the adjustment's mode to LAB, change its target channel from Master to Lightness, and then invert the curve (drag bottom left node to top left and drag top right node to bottom right).

Not just an alternative but a better one, since 1) there is no need to change the document format to LAB & 2) this curve can be added to the AP Adjustments panel as a preset.


Affinity Photo 1.8.3, Affinity Designer 1.8.3, Affinity Publisher 1.8.3; macOS Mojave 10.14.6 iMac (27-inch, Late 2012); 2.9GHz i5 CPU; NVIDIA GeForce GTX 660M; 8GB RAM
Affinity Photo 
1.8.3.180 & Affinity Designer 1.8.3.2 for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 13.3.1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Please note the Annual Company Closure section in the Terms of Use. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.