0

I have one base layer and ten optional, alternating layers (on/off features). So there are 2**10 combinations with 10 optinal layers so I should get 1024 variations generated with my layers.

As a comparison, in Adobe-photoshop, I would use Action script like here but not sure whether it exists for Gimp or use Export layers to Files feature here.

I want to find something like that in Gimp to automate the export of multiple variations from Gimp.

Is there a way to automate this process of generating different combinations in Gimp?

4
  • 1
    Yes you can write scripts for GIMP. You use can Python or ScriptFu. For more info see docs.gimp.org/en/gimp-scripting.html
    – Billy Kerr
    Dec 30, 2021 at 19:51
  • @BillyKerr so I could initiate system commands and use the Python bindings to Imagemagick for some automations here? My goal is to use the solutions found here to generate an NFT collections and probably also other scenarios, any idea whether some addon already exist or useful scripts?
    – hhh
    Dec 30, 2021 at 19:55
  • I'm no expert in coding, however I have used scripts (written by others) in GIMP. If you want more detailed advice, it's beyond my experience. Sorry.
    – Billy Kerr
    Dec 30, 2021 at 19:57
  • 1
    There are quite a few useful scripts to peruse here: sourceforge.net/projects/gimp-tools/files/scripts
    – Billy Kerr
    Dec 30, 2021 at 20:02

2 Answers 2

1

You can try the ofn-export-layers-combinations script that you will find here.

The script creates all combinations obtained by cycling layers (or sub-groups) within 1st-level groups, so in your case you would create a group for each of your switchable layers and add a second fully transparent layer to that group.

0

I found some potential solutions, particularly from this thread here, summarising below.

  1. Export to ORA file, solution here and then unarchieve it with special software

  2. Exports Layer Plugin here

  3. Export the image as an animated gif and then $ convert -coalesce ./myfile.gif outfile%05d.png will extract the frames as PNG images with ImageMagick.

where ORA export has gained most upvotes. This is 7 years old so there may be updated information on this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.