RSS/Atom feed Twitter
Site is read-only, email is disabled

script-autocrop

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

4 of 4 messages available
Toggle history

Please log in to manage your subscriptions.

script-autocrop privet 19 Jan 19:10
  script-autocrop Niels Giesen 20 Jan 10:59
   script-autocrop adamjameslaw 01 Jun 11:00
    script-autocrop Ken Warner 01 Jun 12:49
privet
2009-01-19 19:10:13 UTC (over 15 years ago)

script-autocrop

I'm calling gimp on the windows-shell: -----------------------------
cd c:\temp
c:\Programme\GIMP-2.0\bin\gimp-2.6.exe --batch-interpreter plug-in-script-fu-eval -i -d -b "(script-autocrop '24789232_1.jpg')" -b "(gimp-quit 0)" -----------------------------

output: -----------------------------
GIMP-Error: ?c:\temp\'24789232_1.jpg')'' 1/2 : No such file or directory GIMP-Error: ?c:\temp\0)'' 1/2 : No such file or directory batch command executed successfully
batch command executed successfully
-----------------------------

OS: winxp Gimp-Version: 2.6.4.

What is wrong with my call? Thanks for help in advance
Nico

P.S.: a call like
c:\Programme\GIMP-2.0\bin>c:\Programme\GIMP-2.0\bin\gimp-console-2.6.exe --batch-interpreter plug-in-script-fu-eval -i -d -b "(script-autocrop \"c:/temp/24789232_1.jpg\")" -b "(gimp-quit 0)"

doesn't work too. Error-output:

batch command experienced an execution error

Niels Giesen
2009-01-20 10:59:21 UTC (over 15 years ago)

script-autocrop

To quote a string in scheme, use double quotes, a single quote quotes (s-)expressions. So you'll have to use single quotes for the shell. And by the way, you can group expressions with `begin', to ease the quoting:

So try this:

c:\Programme\GIMP-2.0\bin\gimp-2.6.exe --batch-interpreter plug-in-script-fu-eval -i -d -b '(begin (script-autocrop "24789232_1.jpg") (gimp-quit 0))'

Good luck,

Niels.

On Mon, Jan 19, 2009 at 7:10 PM, privet wrote:

I'm calling gimp on the windows-shell: -----------------------------
cd c:\temp
c:\Programme\GIMP-2.0\bin\gimp-2.6.exe --batch-interpreter plug-in-script-fu-eval -i -d -b "(script-autocrop '24789232_1.jpg')" -b "(gimp-quit 0)" -----------------------------

output: -----------------------------
GIMP-Error: ?c:\temp\'24789232_1.jpg')'' 1/2 : No such file or directory GIMP-Error: ?c:\temp\0)'' 1/2 : No such file or directory batch command executed successfully
batch command executed successfully
-----------------------------

OS: winxp Gimp-Version: 2.6.4.

What is wrong with my call? Thanks for help in advance
Nico

P.S.: a call like
c:\Programme\GIMP-2.0\bin>c:\Programme\GIMP-2.0\bin\gimp-console-2.6.exe --batch-interpreter plug-in-script-fu-eval -i -d -b "(script-autocrop \"c:/temp/24789232_1.jpg\")" -b "(gimp-quit 0)"

doesn't work too. Error-output:

batch command experienced an execution error _______________________________________________ Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

2009-06-01 11:00:33 UTC (almost 15 years ago)
postings
1

script-autocrop

This should help

FULLPATH = "C:\Program Files\GIMP-2.0\bin\gimp-2.6.exe" arguments = "-b ""(ajl-script-fu-lineify-batch \""C:\\temp\\convert\\*.jpg\"" 8 4 4 2)" ' +" (gimp-quit 0)" arguments = "-b ""(ajl-script-fu-autocrop-batch \""C:\\temp\\TM1\\Test\\*.jpg\"")" ' +" (gimp-quit 0)"
runfolder = "C:\Program Files\GIMP-2.0\bin\" retval = ShellExecute(0, "open", FULLPATH, arguments, _ runfolder, 1)

Cheers

Adam

Ken Warner
2009-06-01 12:49:51 UTC (almost 15 years ago)

script-autocrop

GIMP is great stuff...

But the best way to use it effectively seems to be through scripts and command line interaction. It is a daunting task to learn the scripting language and all the little tricks to make it do obviously useful things.

I hope that those who develop GIMP start morphing its interface into a more modern form so that those who have other things to do can keep doing those other things and at the same time make fuller use of GIMP.

Adam wrote:

This should help

FULLPATH = "C:\Program Files\GIMP-2.0\bin\gimp-2.6.exe" arguments = "-b ""(ajl-script-fu-lineify-batch \""C:\\temp\\convert\\*.jpg\"" 8 4 4 2)" ' +" (gimp-quit 0)" arguments = "-b ""(ajl-script-fu-autocrop-batch \""C:\\temp\\TM1\\Test\\*.jpg\"")" ' +" (gimp-quit 0)"
runfolder = "C:\Program Files\GIMP-2.0\bin\" retval = ShellExecute(0, "open", FULLPATH, arguments, _ runfolder, 1)

Cheers

Adam