|FROM ||Ofnuts via gimp-user-list
|SUBJECT ||Re: [Hangout - NYLXS] [Gimp-user] Script-fu in GIMP - and batch
|You can write your scripts in Python, this can be simpler to master:
On 30/05/2021 10:14, ludo0565 wrote:
> Hello Robbie,
> First of all I present my excuses to you:
> My mail box placed your mail in spam - and I only saw it yesterday.
> So thanks a lot for your answer. It's not so easy to find someone interested in a question about scheme & script-fu ...
> I'll try this as soon as I get time - which is pretty scarce at the moment... unfortunately.
> And I I'll let you know as soon as I do.
> Thanks again.
> Le 26 mai 2021 00:26:56 GMT+02:00, Robbie Huffman a écrit :
>> On Sat, May 15, 2021 at 05:45:47PM +0200, ludo0565-at-dbmail.com wrote:
>>> Then I tried with this:
>>> (define (batch-unsharp-mask pattern radius amount threshold
>>> (let* ((filelist (cadr (file-glob pattern 1))))
>>> (while (not (null? filelist))
>>> (let* ((filename (car filelist))
>>> (filenamenew (+ "(car filelist)" "-new"))
>>> (image (car (gimp-file-load RUN-NONINTERACTIVE
>> filename filename)))
>>> (drawable (car (gimp-image-get-active-layer
>>> (plug-in-unsharp-mask RUN-NONINTERACTIVE image drawable
>> radius amount threshold)
>>> (gimp-file-save RUN-NONINTERACTIVE image drawable
>> filenamenew filenamenew)
>>> (gimp-image-delete image))
>>> (set! filelist (cdr filelist)))))
>>> But that didn't work either, because the argument to " + " (sum) must
>> be a number.
>> I think you could (string-append filename "-new") to get something that
>> works OK.
gimp-user-list mailing list
List address: gimp-user-list-at-gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives: https://mail.gnome.org/archives/gimp-user-list
Hangout mailing list