Bonjour, I've got several images to put on the web and all have to be modified in the same way to blend with the website appearance. Being tired of clicking the same menu items several times, I'm trying to create a batch to do the job, but as it's my first one, I'm running into problems, can someone point me to what I'm doing wrong ?
What I'd like to do : select all, shrink the selection, rectangle round the selection, feather the selection, invert the selection, delete the selection, then save the file. Here is my unfinished script (I'm adding one step at a time), I tried several ways to delete the selection to no avail, it always give me a "experienced a execution error" : (define (test2 filename) (let* ( (image (car (gimp-file-load RUN-NONINTERACTIVE filename filename))) ) (gimp-selection-all image) (gimp-selection-shrink image 3) (let* ( (selection (car (gimp-image-get-selection image))) ) (script-fu-selection-rounded-rectangle RUN-NONINTERACTIVE image selection 5) ) (gimp-selection-feather image 5) (gimp-selection-invert image) ; everything seems to run until I add the following : (let* ( (selection (car (gimp-image-get-selection image))) ) (gimp-drawable-delete selection) ) ) ) Thanks for any help. -- xave _______________________________________________ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user