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

Run GIMP in batch mode ... HOW ?

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.

6 of 7 messages available
Toggle history

Please log in to manage your subscriptions.

Run GIMP in batch mode ... HOW ? KC 18 Jan 01:50
  Run GIMP in batch mode ... HOW ? Stephan Hegel 18 Jan 15:45
Run GIMP in batch mode ... HOW ? Michael Schumacher 18 Jan 10:39
Run GIMP in batch mode ... HOW ? Michael Schumacher 18 Jan 11:37
43CDB048.8090004@wahgnube.org 07 Oct 20:17
  Run GIMP in batch mode ... HOW ? KC 18 Jan 04:15
   Run GIMP in batch mode ... HOW ? Dave Kuhlman 18 Jan 05:01
KC
2006-01-18 01:50:07 UTC (over 18 years ago)

Run GIMP in batch mode ... HOW ?

Hi,

Can I run GIMP in batch mode ? For example, I want to invoke GIMP from my application (written by C) via UNIX's pipe (or popen in C) ... How to do that ? Any example, tutorial will be appreciated. Thanks

Regards KC

KC
2006-01-18 04:15:55 UTC (over 18 years ago)

Run GIMP in batch mode ... HOW ?

Hi,

Thanks for the info. Is it possible not to use script-fu ? Any other language binding is supported by GIMP ? The language used by script-fu is ... looks difficult to me :-(

Regards KC

On 1/18/06, wahgnube wrote:

KC wrote:

Hi,

Can I run GIMP in batch mode ? For example, I want to invoke GIMP from my application (written by C) via UNIX's pipe (or popen in C) ... How to do that ? Any example, tutorial will be appreciated. Thanks

If you're interested in performing operations using the gimp from the command line, you can use the instructions found here: http://gimp.org/tutorials/Basic_Batch/

All you need to do is to write a simple (gimp script-fu) script, and execute it in the gimp. You can wrap such calls in a shell script or something (your program) to derive more functionality.

Harish

Dave Kuhlman
2006-01-18 05:01:06 UTC (over 18 years ago)

Run GIMP in batch mode ... HOW ?

On Wed, Jan 18, 2006 at 11:15:55AM +0800, KC wrote:

[snip]

On 1/18/06, wahgnube wrote:

KC wrote:

Hi,

Can I run GIMP in batch mode ? For example, I want to invoke GIMP from my application (written by C) via UNIX's pipe (or popen in C) ... How to do that ? Any example, tutorial will be appreciated. Thanks

If you haven't already found it, you may also want to look at ImageMagick. It provides APIs for C and C++ and other languages. If it has the capabilities you need, you may be able to avoid the pipe/popen thing. You can find info here:

http://www.imagemagick.org/script/index.php

Dave

[snip]

Michael Schumacher
2006-01-18 10:39:15 UTC (over 18 years ago)

Run GIMP in batch mode ... HOW ?

Von: KC

Can I run GIMP in batch mode ?

Yes.

How to do that ? Any example, tutorial will be appreciated.

You could follow the batch tutorial on www.gimp.org, for example: http://www.gimp.org/tutorials/Basic_Batch/

BTW, you didn't really search for this, did you?

HTH, Michael

Michael Schumacher
2006-01-18 11:37:08 UTC (over 18 years ago)

Run GIMP in batch mode ... HOW ?

Von: KC

Thanks for the info. Is it possible not to use script-fu ? Any other language binding is supported by GIMP ?

You can write the script or plug-in that does the actual processing in C, C++, Python or Perl (and maybe any other langage that creates executables and can use the gimp and gtk+ libs, but I've never tried this).

However, if you're aiming for immediate and easy deployment on as many platforms as possible, Script-Fu is the way to go.

For C and C++, you'll have to provide binaries for platforms where compiling is done less commonly by users themselves.

Gimp-Python is still not released for the Windows platform (it is available in 2.3.x releases, but these are not intended for the general public).

Perl is out of the question for not being built on Windows at all.

The language used by script-fu is ... looks difficult to me :-(

It is Scheme. You'll need a text editor that helps you to get around with its list-based syntax (for example, forget things like Notepad), but if you have this is is far more readable than other languages. Some say than anyone who speaks english should be able to read it fluently.

HTH, Michael

Stephan Hegel
2006-01-18 15:45:55 UTC (over 18 years ago)

Run GIMP in batch mode ... HOW ?

Hi,

There is a package called "batchgimp" on freshmeat. Basically it includes Perl scripts with embedded Script-Fu. I modified and used it once to convert a bunch of images to the Gimp pattern format (which cannot be done by Imagemagick, unfortunately).

Another choice could be David's Batch Processor (dbp). It is a Gimp plugin and can be found at
http://members.ozemail.com.au/~hodsond/dbp.html It allows preparing and starting predefined batch operations by using a little GUI.

Regards,
Stephan.

KC wrote:

Hi,

Can I run GIMP in batch mode ? For example, I want to invoke GIMP from my application (written by C) via UNIX's pipe (or popen in C) ... How to do that ? Any example, tutorial will be appreciated. Thanks

Regards KC