Quoting "B.W.H. van Beest" <[EMAIL PROTECTED]>:


802] test>    gimp -i -b '(file_jpeg_save RUN-NONINTERACTIVE
"blurk.xcf" 2  "aap.jpg" "aap.jpg" 80.0 0.0 0)' '(gimp-quit 0)'
No batch interpreter specified, using the default 'plug_in_script_fu_eval'.
batch command: experienced an execution error.
[803] test>    What am I doing wrong?

The "image" parameter in any script-fu function is actually a number which is defined when the image is loaded into the GIMP; it is *not* a filename. It is necessary for you to create a short script which loads your file into the GIMP and *then* saves back to disk.

I have written just such a script for you which you can find at http://flashingtwelve.brickfilms.com/GIMP/Scripts/batch-xcf2jpg.scm

The script should be executed from the command line as follows:

  gimp --no-interface -b '(batch-xcf2jpg "pattern.ext")' '(gimp-quit 0)'

Where the string ("pattern.ext" in the example) is a wildcard pattern of all of the files which you wish to be converted; the pattern can also be just a specific filename (for example, "someimage.xcf"). The script can be used to convert other formats (PNG, GIF, etc) by changing the extension (the output is always JPEG).
_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Reply via email to