Author Topic: Command Line GIMP Batch Operations?  (Read 3254 times)

0 Members and 1 Guest are viewing this topic.

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Command Line GIMP Batch Operations?
« 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, but they have the same problem. Any ideas?


In case this information will help:
  • GIMP 2.6.10
  • Windows 7 x64

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Command Line GIMP Batch Operations?
« Reply #1 on: March 04, 2011, 12:52:17 am »
What command did you tried?

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Command Line GIMP Batch Operations?
« Reply #2 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

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Command Line GIMP Batch Operations?
« Reply #3 on: March 04, 2011, 01:07:53 am »
Hm, that's weird, seems it treats your numerical constants as filenames.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.