in reply to Re: Controlling The Gimp
in thread Controlling The Gimp

Try, perlmagick if you want to use perl, it is an API to ImageMagick,
$img->Set(monochrome=>true)