Switch to full style
Post all Gimp scripts and script writing questions here
Post a reply

Solarization Effects I made in GEGL (graphs not plugins)

Sat Feb 10, 2024 9:55 am

If you paste this syntax in Gimp's GEGL Graph filter you will be able to test solarization effects I made. I have no interest in transforming them into filters with GUIs as they are frankly generic. Unless of course someone shows high interest in them. In that case tell me and I will transform them into filters of their own. All of this syntax will work regardless if you have any of my plugins.

Color Solarization preview
purple_solarization.png
purple_solarization.png (505.42 KiB) Viewed 1241 times


Invert Solarization Preview
invert_solarization.png
invert_solarization.png (449.4 KiB) Viewed 1241 times


Technical Solarization based on the original definition
Code:
id=1 dst-in aux=[ ref=1 gegl:svg-luminancetoalpha   ]
invert
gray
id=2
gimp:layer-mode layer-mode=burn aux=[ ref=2 opacity value=0.6 gaussian-blur std-dev-x=1.5 std-dev-y=1.5  ]
dst-over aux=[ ref=1 ]


Invert Solarization
Code:
id=1 dst-in aux=[ ref=1 gegl:svg-luminancetoalpha   ]
invert
id=2
gimp:layer-mode layer-mode=burn aux=[ ref=2 opacity value=0.6 gaussian-blur std-dev-x=1.5 std-dev-y=1.5  ]
dst-over aux=[ ref=1 ]


Invert Solarization with a hue rotation slider
Look for the "hue" slider and modify its values.

Code:
gegl:shadows-highlights
highlights=50
shadows=50
radius=50
id=1 dst-in aux=[ ref=1 gegl:svg-luminancetoalpha   ]
hue-chroma hue=44 chroma=-1
invert
id=2
gimp:layer-mode layer-mode=burn aux=[ ref=2 opacity value=0.4 gaussian-blur std-dev-x=1.5 std-dev-y=1.5  ]
dst-over aux=[ ref=1 ]


Color overlay solarization
Look for the color-overlay value=HTML code and change its parameters to be any color.
Code:
gegl:shadows-highlights
highlights=50
shadows=50
radius=50
id=1 dst-in aux=[ ref=1 gegl:svg-luminancetoalpha   ]

invert

id=2
color-overlay value=#ff0093

gimp:layer-mode layer-mode=burn opacity=0.5 aux=[ ref=2    gaussian-blur std-dev-x=3.5 std-dev-y=3.5   ]
over aux=[ ref=1 opacity value=0.6 ]

opacity value=7
median-blur radius=0
Post a reply