Today, 06:09 AM
Hello,
since a while I've been using the (I think very good) script "https://github.com/FrancoisMalan/DivideScannedImages"
But one thing isn't optimal for me in Batch-Mode: all the picture that were processed get the name "Crop..." with a number.
It would be more useful to have (also) the original file name in the output name.
In Batchmode there already exists the variable "filename", but when I put it in in the line with the output
then I get "Error: eval: unbound variable: filename "
I supposed the problem is that the variable is not declared, so I put it in the line for the batch-part:
But than I get "Error: not enough arguments"
What I'm doing wrong?
PS.: I'm using Gimp 2.10.36 under Linux Mint 64bit
since a while I've been using the (I think very good) script "https://github.com/FrancoisMalan/DivideScannedImages"
But one thing isn't optimal for me in Batch-Mode: all the picture that were processed get the name "Crop..." with a number.
It would be more useful to have (also) the original file name in the output name.
In Batchmode there already exists the variable "filename", but when I put it in in the line with the output
Code:
(set! newFileName (string-append targetDir pathchar filename inFileName
then I get "Error: eval: unbound variable: filename "
I supposed the problem is that the variable is not declared, so I put it in the line for the batch-part:
Code:
(define (script_fu_BatchDivideScannedImages inSourceDir inLoadType inSquareCrop inPadding inLimit inDeskew inAutoClose inThreshold inSize inDefBg inBgCol inCorner inX inY inSaveInSourceDir inDestDir inSaveType inJpgQual inFileName inFileNumber filename)
But than I get "Error: not enough arguments"
What I'm doing wrong?
PS.: I'm using Gimp 2.10.36 under Linux Mint 64bit