
To date, IOM has placed 186 Somali diaspora advisors in 31 Somali institutions.

(filelist (cadr (file-glob (string-append directory "*." fileType) 1))) (define (batch-background-replacement fileType directory background backups) SF-FILENAME "New background" (string-append "" gimp-data-directory "") "Replace backgrounds of all images in a directory" I have not done any sort of exception handling for cases where the background and target images are different dimensions or file types. The batch script should apply the above process to every image in the directory with the target file extension.įollowing the example of GIMP's scripting tutorial and their batch mode page, I wrote the following script-fu (scheme). I am attempting to write a script that takes as arguments: a target file extension, a directory containing target files, a new background image, and an option to create backups of the target files.


#Script fu download gimp manual
In order to change this background for an individual image, my manual process (which may not even be the most efficient) is: Add layer mask > Transfer layer's alpha channel > copy contents of layer mask > Apply layer mask > paste new background layer into the image (same dimensions) > move new layer to bottom of stack > flatten image > Add layer mask (to resulting single layer) > Transfer layer's alpha channel > paste contents of previous layer mask from clipboard > Apply layer mask > export to. These images are used in an application where they are sometimes rendered with their transparency and sometimes without, so the 'background' (the RGB areas corresponding to the black parts in a layer mask containing the alpha channel) is critically important.
