I have written a short script (my first one actually) which has to load 5 images as layers and merge them together, in between adding a layer of transparency to some of the images
basically it is intended for be used with GIMP in batch mode via the command line.
(define (overlay-script file1 file2 file3 file4 file5) (let* ( (gimp-file-load-layer 1 imageMain file1) (gimp-file-load-layer 1 imageRight (car (plug-in-colortoalpha 1 file2 drawable 000000))) (gimp-file-load-layer 1 imageTop (car (plug-in-colortoalpha 1 file3 drawable 000000))) (gimp-file-load-layer 1 imageCenter (car (plug-in-colortoalpha 1 file4 drawable 000000))) (gimp-file-load-layer 1 imageLeft (car (plug-in-colortoalpha 1 file5 drawable 000000)))) ) (gimp-image-merge-visible-layers NewImage 0) (gimp-xcf-save 1 NewImage drawable file1 file1))
Upon executing the code (running GIMP 2.6.10 on Ubuntu 10 LTS), I receive the following error:
batch command experienced an execution error
Any help is appreciated.
This post has been edited by physiker: 27 July 2011 - 11:45 AM