Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Processing XCF files in batch
#7
Well, I repeat, my scripting ability is very basic.

The attached zip contains 3 files. color-exchange (linux),  color-exchange.exe (win) , and a very simple two line plugin swap-rgb.py

Put the appropriate color-exchange & swap-rgb.py in your user plugins folder. swap-rgb.py registers in the Tools menu.

Fortunately your example uses rgb(255,0,0) red and rgb(0,255,0) green  the layer position is in  "image.layers[x] and works for your example.xcf. Edit as required.

Works here Gimp 2.10.32 / kubuntu 20.04 (providing you have a working gimp-python ) and Gimp 2.10.32 / Win 10 (VM)

How to put this into a batch file, I do not know. Might / might not help you.


Attached Files
.zip   color-exchange.zip (Size: 35.55 KB / Downloads: 68)
Reply


Messages In This Thread
Processing XCF files in batch - by Mate de Vita - 12-01-2022, 03:38 PM
RE: Processing XCF files in batch - by Ofnuts - 12-02-2022, 05:48 PM
RE: Processing XCF files in batch - by Ofnuts - 12-10-2022, 07:39 AM
RE: Processing XCF files in batch - by rich2005 - 12-09-2022, 04:53 PM
RE: Processing XCF files in batch - by rich2005 - 12-09-2022, 09:02 PM
RE: Processing XCF files in batch - by Ofnuts - 12-11-2022, 04:55 PM
RE: Processing XCF files in batch - by Ofnuts - 12-16-2022, 08:18 AM
RE: Processing XCF files in batch - by Ofnuts - 12-16-2022, 12:54 PM

Forum Jump: