Guide to use GEGL in Pixelitor on LinuxIncludes mandatory bash file
pgegl. This will NOT WORK ON WINDOWS.
https://github.com/LinuxBeaver/Use_GEGL ... _on_Linux/--everything below is original post--
GEGL BEING USED NON DESTRUCTIVELY IN PIXELITORThe latest build of Pixelitor on Github contains a new filter called “command line” that allows system inputs just like GEGL Bash. Which means GEGL is now in Pixelitor and we can run GEGL filters non-destructively in it, but it is syntax only and the pgegl.sh file I supply only works on Linux. Though in theory GEGL can work on both Windows and Linux using this tool but I don’t know how to install GEGL on Windows. Pixelitor’s dev got Image Magick with it running on Windows.
Attachment:
gmic_and_pixelitor.png [ 1018.22 KiB | Viewed 41186 times ]
The GEGL being called in Pixelitor is NOT the GEGL installed in Gimp. Which means it cannot run (gimp:) namespace GEGL filters. Its location is
/usr/bin/gegl It is installed in the manner of “sudo apt install gegl” or “sudo dnf install gegl”. You all get the idea of how Linux installs stuff.
GEGL filters in Pixelitor when used as smart objects or adjustment layers are default named “Command Line” as that is the filters name but users can change the name to the name of a GEGL filter just by clicking the layer and typing in whatever. GEGL filters are slow here and they work through Pixelitor writing /tmp/input.png and /tmp/output.png to the disk.
Lastly, One of the biggest concerns here is that most people don’t know how to write GEGL syntax like me. But now that Pixelitor can use GEGL Syntax, Image Magick, GMIC and other things via a CLI you all should consider learning.
How to call GEGL on Linux in Pixelitor1. Build the latest Pixelitor from source here (requires Java 22)
https://github.com/lbalazscs/Pixelitor2. Save this in
/home/username/.local/bin/ name it
pgegl#!/bin/bash
IN=/tmp/input.png
OUT=/tmp/output.png
cat > $IN
COMMAND="gegl -i $IN -o $OUT -- $@"
$COMMAND 1>&2
exec cat $OUT
3. Enable Pixelitor's experimental features, restart Pixelitor then open Pixelitor's command line filter in Filters>Other>Command line and run any GEGL syntax such as
saturation scale=1.2 bloom strength=10For a bonus
Here is how to call Image Magick on Windows
"C:\Program Files\ImageMagick-7.0.10-Q16-HDRI\magick.exe"
convert png:-
-rotate 180
-canny 0x1+10%+30%
png:-
If someone compiles a GEGL binary on Windows we can get it working on Windows. I'll be back soon when I figure out how to call REMBG.