I got my script-fu script working, and producing the image I need. Here
it is :
However, I can't save the image when it's merged. It works if I don't
merge the layers, but as soon as they're merged, there's an error.
I followed the instructions given there:
But that does not work.
Gimp-user mailing list