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

Setting up gimp server for the web

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.

1 of 1 message available
Toggle history

Please log in to manage your subscriptions.

Setting up gimp server for the web Kate Yoak 15 Jan 20:18
Kate Yoak
2009-01-15 20:18:22 UTC (about 16 years ago)

Setting up gimp server for the web

Hi!

Here is a list of my thoughts on how to set up gimp to do image manipulation on the web. Could anyone with some experience please comment!

1. We are going to need a server. I guess I start perl-server like this: gimp -i -b '(extension-perl-server 0 0 0)'&

2. Now I write client functions for common tasks and put them into plugins directory. This way, I can just use those plugins from the web client.

3. I configure the web clients to connect to the server (found this at http://lists.xcf.berkeley.edu/lists/gimp-developer/2002-September/007450.htm l):

1.setenv GIMP_HOST password@1.2.3.4 on server box A(where the gimp, perl,gtk
etc are installed);
2.start gimp perl server on server box A; 3.setenv GIMP_HOST password@1.2.3.4 on client box B; 4.start the script on client box B;

4. So... Now I need to connect to the Gimp server and tell it to warp my image, or whatever it is.

So I do something like this: use Gimp qw/:auto/;
Gimp::on_net(sub {plugin_warp_image( name => 'my-image', shape => 'trapezoid') };
exit main();

5. OK, so I am in a web application. Exit main() does not sound right...

Furthermore, I am going to need to retrieve the image as binary data, ask the server to create a new image, then get it back. What does my client look like?

6. Is there anything else I should be aware of?

Thanks so much for the help! I apologize for newbiness, but am hoping that what comes out of this thread might serve the next guy!

Cheers, Kate