I am building a Gimp plugin in python. I would like to load a layer in memory, based on an file, and then adding it to several images (thus avoiding the loading time from file).
I could not find anything in the documentation to do that: all function adds layers into a specific image (so i would have to load from file each time which is what I am trying to avoid).
Is there a workaround for this ?
One solution I have thought about is to load the layer into a "template image" and then copy it to other images. The problem is that I couldn't find a function to copy layers from one image to another.