Omnimaga

General Discussion => Technology and Development => Computer Programming => Topic started by: Runer112 on March 04, 2011, 12:23:48 am

Title: Command Line GIMP Batch Operations?
Post by: Runer112 on March 04, 2011, 12:23:48 am
I have been tearing my hair out trying to get this to work. No matter how many different things I try, I cannot figure out how to run a simple command line GIMP script. I keep getting errors like the following:
Code: [Select]
GIMP-Error: Opening 'c:\Program Files (x86)\GIMP-2.0\bin\0)'' failed: No such file or directory
It seems that any arguments I enter, it tries to parse them as files in GIMP's \bin\ directory. I've tried using the exact examples used in GIMP's batch mode tutorial (http://www.gimp.org/tutorials/Basic_Batch/), but they have the same problem. Any ideas?


In case this information will help:
Title: Re: Command Line GIMP Batch Operations?
Post by: Juju on March 04, 2011, 12:52:17 am
What command did you tried?
Title: Re: Command Line GIMP Batch Operations?
Post by: Runer112 on March 04, 2011, 01:01:05 am
At first I was trying a script I wrote, but when I had problem with that I tried the examples in their tutorial. For instance, after copying their simple-unsharp-mask example and saving it as script.scm in the .gimp-2.6\scripts\ directory, when I try this:
Code: [Select]
gimp-2.6.exe -i -b '(simple-unsharp-mask "0000.bmp" 5.0 0.5 0)' -b '(gimp-quit 0)'
I get the following:
Code: [Select]
GIMP-Error: Opening 'c:\Program Files (x86)\GIMP-2.0\bin\5.0' failed: No such file or directory

GIMP-Error: Opening 'c:\Program Files (x86)\GIMP-2.0\bin\0.5' failed: No such file or directory

GIMP-Error: Opening 'c:\Program Files (x86)\GIMP-2.0\bin\0)'' failed: No such file or directory

GIMP-Error: Opening 'c:\Program Files (x86)\GIMP-2.0\bin\0)'' failed: No such file or directory

batch command executed successfully
batch command executed successfully
Title: Re: Command Line GIMP Batch Operations?
Post by: Juju on March 04, 2011, 01:07:53 am
Hm, that's weird, seems it treats your numerical constants as filenames.