Hi xave, On Dec 11, 2007 11:11 PM, xave <[EMAIL PROTECTED]> wrote: > 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)
Deleting the selection is a VERY BAD thing to do! You probably want to delete the selected pixels instead. That is what gimp-edit-clear is for. (gimp-edit-clear drawable) where drawable is the layer you want to clear pixels from. > ) > > ) > ) > > > Thanks for any help. > > -- > xave > _______________________________________________ > Gimp-user mailing list > [email protected] > https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user > _______________________________________________ Gimp-user mailing list [email protected] https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
