GIMP Chat http://gimpchat.com/ |
|
GEGL Vibrance - fancy saturation plugin (probably canceled) http://gimpchat.com/viewtopic.php?f=9&t=20735 |
Page 1 of 1 |
Author: | contrast_ [ Tue Jan 30, 2024 10:02 am ] |
Post subject: | GEGL Vibrance - fancy saturation plugin (probably canceled) |
This plugin is near the end of its development which started a day or two ago, and the download source and binaries will be here soon. About the plugin Adobe Photoshop and GMIC have a filter named Vibrance that is basically Saturation on an alternative blend mode with a few other things. I decided to make my own Vibrance filter in GEGL to mimic them. I even added features; hyper opacity and blend mode switchers, which no other vibrance filter has to make sure I am original. Vibrance being applied on the turtle. The blend mode is actually "LCH Lightness" and it was accidentally named screen in the drop down list of this beta build. So I had to fuzz it out. Attachment: lighten.png [ 607.3 KiB | Viewed 1440 times ] Currently, my Vibrance filter allows the user to choose between four blend modes (lighten only, screen, overlay and addition) with a slider called hyper opacity which allows the blend mode to above 100% (up to 200%). And still giving the user the ability to adjust normal saturation and lightness after the 'vibrance' is applied. In the industry "Vibrance" is a term that describes saturation on an alternative blend mode. I am fully aware Gimp's default saturation filter can be blended to make a "vibrance" effect but it cannot do the hyper opacity, lightness and saturation/desaturation on it. Though it does have the advantage of using all Gimp's blend modes and not just a few of them. I may add more blend modes before it is released. Video preview of Vibrance https://streamable.com/1mwmgr |
Author: | contrast_ [ Tue Jan 30, 2024 11:53 am ] |
Post subject: | Re: GEGL Vibrance - fancy saturation plugin (coming soon) |
Vibrance now has 8 blend modes to choose from instead of just 4 (like it did a few hours ago). Plus, Screen, Lighten, Overlay, Weighted Blend, Addition, LCh Lightness and Soft Light. I have never made a GEGL plugin that used the "Weighted blend" blend mode. This is a GEGL exclusive blend mode that happens to look good with it. here is a snip of the code that list the blend modes. Code: Select all switch (o->blendmode) { |
Author: | contrast_ [ Tue Jan 30, 2024 12:20 pm ] |
Post subject: | Re: GEGL Vibrance - fancy saturation plugin (coming soon) |
https://gegl.org/operations/gegl-weighted-blend.html This is a GEGL exclusive blend mode called Weighted Blend that is NOT natively inside Gimp. I have never used this blend mode before, but it looks amazing. So good that I might make it the default. Attachment: image.png [ 418.49 KiB | Viewed 1422 times ] Look how it is listed inside the code it was given the name wb in the new child operation list and WB in the ENUM drop down list area. So look for that. Code: Select all /* This file is an image processing operation for GEGL Below I will list all the areas that Weighted Blend is in so users can understand how the GEGL node gegl:weighted-blend integrates in the code In the Typedef Structure that list all given nodes names (look for *wb) Code: Select all #include "gegl-op.h" In the GEGL New Child Operation list Code: Select all state->wb = gegl_node_new_child (gegl, In the ENUM (drop down list) internal area. Code: Select all case WB: In the GUI aspect of ENUM list Code: Select all enum_start (vibrance_magic) |
Author: | Reptorian [ Tue Jan 30, 2024 3:00 pm ] |
Post subject: | Re: GEGL Vibrance - fancy saturation plugin (coming soon) |
Quote: In the industry "Vibrance" is a term that describes saturation on an alternative blend mode. No, it's not. Vibrance is weighted saturation, and weighing by saturation or chroma helps it avoid being over-saturated. I did `Vibrance [YCH]` for G'MIC which uses YCH model which is the cylindrical interpretation of YUV. |
Author: | contrast_ [ Tue Jan 30, 2024 4:08 pm ] |
Post subject: | Re: GEGL Vibrance - fancy saturation plugin (coming soon) |
ok I guess I was wrong. I figured it had to be that because GMIC and PS's vibrance looks very similar Saturation by Gimp blend modes. |
Author: | contrast_ [ Tue Jan 30, 2024 5:25 pm ] |
Post subject: | Re: GEGL Vibrance - fancy saturation plugin (coming soon) |
I just wrote a bunch of GEGL syntax that dulls the color red from saturation but preserves everything else. It is sloppy because it depends on the original image file and not id and ref. Attachment: remove_red_and_preserve_blue_and_green.png [ 567.98 KiB | Viewed 1397 times ] |
Author: | contrast_ [ Fri Feb 02, 2024 4:02 pm ] |
Post subject: | Re: GEGL Vibrance - fancy saturation plugin (coming soon) |
I found a simple way to keep green and blue saturation but decrease red saturation using only a few lines of GEGL syntax. The saturation is kept on green in the image but the red is reduced. Attachment: reduce_red.png [ 161.39 KiB | Viewed 1329 times ] If I disable this line the red comes back Attachment: reduce_red_disabled.png [ 162.64 KiB | Viewed 1329 times ] |
Author: | Tas_mania [ Fri Feb 02, 2024 7:27 pm ] |
Post subject: | Re: GEGL Vibrance - fancy saturation plugin (coming soon) |
I came across another way of boosting vibrance using the G'MIC channel overblur filter by Reptorian. This filter can multiply each RGB channel. Its mostly too intense and I use colour curves to lighten it a bit. |
Author: | contrast_ [ Sun Feb 11, 2024 9:29 pm ] |
Post subject: | Re: GEGL Vibrance - fancy saturation plugin (coming soon) |
I made a graph (aka GEGL syntax) that depends on my plugin Edge Smooth (which can be downloaded here as a dependency of chrome text) https://github.com/LinuxBeaver/GEGL---C ... r/releases This GEGL syntax saturates green and blue and ignores red almost entirely. I don't know why I should make it a filter when it can be entirely controlled in GEGL graph using the master opacity slider that all GEGL filters have. At 0% to 100% opacity the effect is controlled. Paste this syntax into GEGL graph to "vibrance" an image and make sure to tweak the opacity slider of GEGL graph. Code: Select all id=0 Now why should I turn this into a plugin when the syntax and opacity slider does everything? |
Page 1 of 1 | All times are UTC - 5 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |