On Fri, May 2, 2008 at 8:35 AM, Choi, JiHui <[EMAIL PROTECTED]> wrote:
> On Fri, May 2, 2008 at 2:35 AM, Kevin Cozens <[EMAIL PROTECTED]> wrote:
>  >  I think you would be better off doing this using ImageMagick and a shell
>  >  script. The 'convert' program with the -alpha and -background options 
> should
>  >  allow you to do what you want.
>  >
>  I know about ImageMagick, but there is no version for windows.
>  even though I use windows and linux both.

Not true.
"You can install ImageMagick from source. However, if don't have a
proper development environment or if you're anxious to get started,
download a ready-to-run Unix or Windows executable."

>  On Fri, May 2, 2008 at 4:00 AM, Xavier Mas <[EMAIL PROTECTED]> wrote:
>  >  Or you can do an script using Scheme. GIMP allows to use any of its 
> functions
>  >  by script.
>  >
>  I tried to learn scheme, but it's so difficult.
Learning python would be easier.


>  and if I want another actions, I have to learn about relative functions.
>  so I think, I just want to use gimp, not to learn scheme. I don't know
>  and don't have any interesting about scheme.
>  humm.. anyway.. to learn scheme is the only way?
>  Isn't there something better than DBP plugin?

I like to use the GIMP Python Console for batch processing.
Here is an example, that processes all PNG files in the current directory.

import glob.glob
for filename in glob.glob ('*.png'):
  image = pdb.gimp_file_load (filename, filename)
  # put your batch processing commands here.
  # for example
  # pdb.gimp_threshold (image.layers[-1], 128,255)
  # would threshold the bottom layer.
  pdb.gimp_file_save (image, image.active_layer, filename, filename)
  del image
Gimp-user mailing list

Reply via email to