script-fu

How to debug script-fu scripts for gimp in scheme?

∥☆過路亽.° 提交于 2020-06-15 23:51:11
问题 I try to make some script for gimp, using script-fu, scheme. Naturally, as a beginner, there are lots of errors and misunderstandings. Now I'm looking for a way to debug those scripts. I found (gimp-message), but the result does not show up. I'm not aware if there is a possibility to print debug messages to anywhere I could check them. Generating new images filled with text would probably work ;-) but looks a bit like an overkill. What ways to debug a script in gimp are there? 回答1: The output

How to debug script-fu scripts for gimp in scheme?

纵饮孤独 提交于 2020-06-15 23:50:51
问题 I try to make some script for gimp, using script-fu, scheme. Naturally, as a beginner, there are lots of errors and misunderstandings. Now I'm looking for a way to debug those scripts. I found (gimp-message), but the result does not show up. I'm not aware if there is a possibility to print debug messages to anywhere I could check them. Generating new images filled with text would probably work ;-) but looks a bit like an overkill. What ways to debug a script in gimp are there? 回答1: The output

How to append to a file using Scheme?

穿精又带淫゛_ 提交于 2020-01-15 09:44:33
问题 I am using TinyScheme (actually Script-Fu in GIMP), and cannot find a good way to open a file and append a line of text to it. I am trying to log some info to the file for debugging, and transcript-on doesn't seem to be implemented... Right now I am scraping along by reading the entire file (one character at a time!), concatenating that into a string, concatenating my text to the end of that, then writing it all out to the file again. There must be a better way! 回答1: It's going to be

GIMP batch editing (Script-fu/Python-fu)

纵然是瞬间 提交于 2020-01-03 03:37:29
问题 I have about 500 images, I would like edit all of them in batch, I need to resize them all at to 190x120 dimensions, position then slightly higher (say 10 pixels). And export. Also I would like them all to keep their initial names. Basically I have a frame and I would like to load images (on layer under it) then size them down (above dimensions) move slightly up and export each individual image with frame so that it keeps its name. What would be a command I could use in GIMP console (script

Error in conditional (cond …) script-fu

我与影子孤独终老i 提交于 2019-12-13 04:48:37
问题 I'm trying to do a script-fu and I'm using a cond statement theoretically correct, but it always gives the error "Error: ( : 1) illegal function ". This is the code: (define (script-fu-prueba edicionInteractiva) (let* ( (cond ( (equal? edicionInteractiva "Interactivo") (edicionInteractiva RUN-INTERACTIVE) ) ( (equal? edicionInteractiva "No interactivo") (edicionInteractiva RUN-NONINTERACTIVE) ) ) ) ) ) (script-fu-register "script-fu-prueba" "<Image>/Filters/PRUEBA" "Prueba" "Author"

Using gimp as server on windows

我们两清 提交于 2019-12-12 03:18:59
问题 Here is my problem. CONTEXT I'm building a whole system to handle images processing in my company. We are processing .psd and .cr2 file making a whole lot of differents operations (like developping .cr2 file changing exposition building image architecture with layer and so on) As we are very young (==> very small with limited budget) we do not have a computer dedicated to image processing. But we still need quite a lot of processing. So what i did is: I set up a NAS and then installed a

How to parse out base file name using Script-Fu

旧城冷巷雨未停 提交于 2019-12-07 01:05:44
问题 Using Gimp 2.6.6 for MAC OS X (under X11) as downloaded from gimp.org. I'm trying to automate a boring manual process with Script-Fu. I needed to parse the image file name to save off various layers as new files using a suffix on the original file name. My original attempts went like this but failed because (string-search ...) doesn't seem to be available under 2.6 (a change to the scripting engine?). (set! basefilename (substring filename 0 (string-search "." filename))) Then I tried to use

Converting XCF and other files using command line with GIMP?

谁说我不能喝 提交于 2019-12-03 12:08:34
问题 If I have an XCF file (or any other supported by Gimp) how can I convert it to, for example, PNG for display or further processing? 回答1: I'm a couple of years late, but I thought I'd add what I think is by far the best solution: there is a tool suite called Xcftools (on Ubuntu, apt-get install xcftools ), which has a utility called xcf2png that does this job perfectly. xcf2png image.xcf -o image.png This is much better than a) using ImageMagick (which as I said in a comment above is horribly

How to convert XCF to PNG using GIMP from the command-line?

末鹿安然 提交于 2019-12-03 05:36:22
问题 As part of my build process I need to convert a number of XCF (GIMP's native format) images into PNG format. I'm sure this should be possible using GIMP's batch mode, but I have forgotten all of the script-fu I used to know. My input images have multiple layers, so I need the batch mode equivalent of "merge visible layers" followed by "save as PNG". Also note that I can't install anything in ~/.gimp*/scripts/ — I need a self-contained command-line, or a way to install scripts in my source

Converting XCF and other files using command line with GIMP?

我们两清 提交于 2019-12-03 02:49:44
If I have an XCF file (or any other supported by Gimp) how can I convert it to, for example, PNG for display or further processing? I'm a couple of years late, but I thought I'd add what I think is by far the best solution: there is a tool suite called Xcftools (on Ubuntu, apt-get install xcftools ), which has a utility called xcf2png that does this job perfectly. xcf2png image.xcf -o image.png This is much better than a) using ImageMagick (which as I said in a comment above is horribly broken), or b) using Gimp (which has an extremely complicated scripting language for simply exporting an