NAME

IPC::GimpFu - interface to Gimp's script-fu server

VERSION

Version 0.03

SYNOPSIS

This module makes it possible to communicate with Gimp's script-fu server, and also to start/stop it on the local machine.

use IPC::GimpFu;

# Fine control on a local instance:
my $gimp = IPC::GimpFu->new();
$gimp->local_start();
$gimp->run("some command");
$gimp->local_stop();

# Start locally if needed, keep running once we're done:
my $gimp = IPC::GimpFu->new({ autostart => 1 });
$gimp->run({ file => "gimp-source.scm" });
$gimp->run("some command");

# Use a remote server:
my $gimp = IPC::GimpFu->new({ server => "other-server", port => "other-port" });
$gimp->run("something else");

SUBROUTINES/METHODS

new

Create a new object, using an anonymous hash. The following can be set this way: autostart, server, and port; autostart is only valid if server is localhost; default settings are:

autostart => 0
server => 'localhost'
port => '10008'

start

Start the server, if configured on localhost.

stop

Stop the server, if configured on localhost.

run

Run a given command on the specified server, connecting on the fly if needed. Can be passed a command, or a hash with a file key:

$gimp->run("some command");
$gimp->run({ file => 'foo.scm' });

AUTHOR

Cyril Brulebois, <kibi at debian.org>

BUGS

Please report any bugs or feature requests to bug-app-gimpfu at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=IPC-GimpFu. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc IPC::GimpFu

You can also look for information at:

LICENSE AND COPYRIGHT

Copyright 2012-2013 Cyril Brulebois.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.