If I could export clipboard data and run bash scripts I could get two image restoration tools (REAL-ESRGAN and GPFGAN) to work in Gimp. I have scripts that run said image restoration GANS and open their modified image in my image viewer and or Gimp. The problem is I don't know if there is a way to run them in Gimp on by exporting a composition as a png.
I guess the script would export a composition in a folder, run the gans and reopen the new image in Gimp.
Does anyone want to help me with this?
Here is the script on my own computer that runs REALESRGAN on an image then opens the modified image in Gimp. It will not work on any other computer in the world except mine as it expects unique directories.
#!/bin/bash
source ~/Applications/mc/etc/profile.d/conda.sh && conda activate base && /home/contrast/Applications/Real-ESRGAN-master/realesrgan-ncnn-vulkan -i "$@" -o /home/contrast/Pictures/REAL_ESRGAN/output.png -n realesrgan-x4plus s= 2 && sleep 9 && cd /home/contrast/Pictures/REAL_ESRGAN/
dirname=`ls -t | head -1`
flatpak run --branch=stable org.gimp.GIMP $dirname