Has anyone done any work with hooking Squeak up with the Gimp? Thanks, Philip Knodle
Philip Knodle wrote:
Has anyone done any work with hooking Squeak up with the Gimp? Thanks, Philip Knodle
Given the lack of responses, maybe nobody has. You might get some help if you tell us what exactly you're trying to achieve. 'Hooking up' by itself does not mean enough.
Cheers, Hans-Martin
On Mon, 1 Jul 2002, Hans-Martin Mosner wrote:
Philip Knodle wrote:
Has anyone done any work with hooking Squeak up with the Gimp? Thanks, Philip Knodle
Given the lack of responses, maybe nobody has. You might get some help if you tell us what exactly you're trying to achieve. 'Hooking up' by itself does not mean enough.
Made sense to me. I assume he means "Can Squeak be used in the same way Scheme and Perl can be used for script-fu?"
Short answer: no, it can't- not yet at least.
Long answer: Unfortunately, the answer is still no. The as far as I've read about it (which isn't that much), the Script-Fu API is quite clean. One could fairly easily whip up a SOAP server in perl that exposes the API to Squeak, and any other SOAP-capable language.
Also Philip, have you seen this?: http://webs.sinectis.com.ar/jmvuletich/ImageProcessing/ImageProcessing.html
It may not have the GIMP UI, but if you're looking to manipulate images programatically, this may have the features to do the trick.
Aaron
On Mon, 1 Jul 2002, Aaron wrote:
On Mon, 1 Jul 2002, Hans-Martin Mosner wrote:
Philip Knodle wrote:
Has anyone done any work with hooking Squeak up with the Gimp? Thanks, Philip Knodle
Given the lack of responses, maybe nobody has. You might get some help if you tell us what exactly you're trying to achieve. 'Hooking up' by itself does not mean enough.
Made sense to me. I assume he means "Can Squeak be used in the same way Scheme and Perl can be used for script-fu?"
That is pretty much what I meant.
Short answer: no, it can't- not yet at least.
Long answer: Unfortunately, the answer is still no. The as far as I've read about it (which isn't that much), the Script-Fu API is quite clean. One could fairly easily whip up a SOAP server in perl that exposes the API to Squeak, and any other SOAP-capable language.
I'm writing a FFI to the basic c code that script-fu and perl use. I'll be able to call gimp from smaltalk, but I don't think I'll be able to call smalltalk from gimp in any easy way.
I'm looking to be able to edit images in the gimp and us them in squeak in a fairly clean programtic way.
-Phil
Aaron reic0024@d.umn.edu wrote:
Long answer: Unfortunately, the answer is still no. The as far as I've read about it (which isn't that much), the Script-Fu API is quite clean. One could fairly easily whip up a SOAP server in perl that exposes the API to Squeak, and any other SOAP-capable language.
There is a SOAP add-on for Squeak. Perhaps that would work?
How is the connection handled, though? Isn't SOAP normally used over HTTP? Is gimp making TCP/IP connections?
-Lex
On Mon, 1 Jul 2002, Lex Spoon wrote:
Aaron reic0024@d.umn.edu wrote:
Long answer: Unfortunately, the answer is still no. The as far as I've read about it (which isn't that much), the Script-Fu API is quite clean. One could fairly easily whip up a SOAP server in perl that exposes the API to Squeak, and any other SOAP-capable language.
There is a SOAP add-on for Squeak. Perhaps that would work?
Yup, which is why I suggested it. There could easily be a perl-fu plug-in written that accepted SOAP requests from Squeak, and a SOAP server and client running in Squeak (Squeak server may be unnec, but perhaps for callbacks in to Squeak).
How is the connection handled, though? Isn't SOAP normally used over HTTP? Is gimp making TCP/IP connections?
Yes, SOAP is over HTTP. Gimp itself wouldn't be making the SOAP requests (and thus TCP/IP connections), but the perl plugin would. A perl-fu script in the GIMP has access to all the regular perl functions and packages, including SOAP::Lite, which can be used for constructing Perl SOAP servers and clients.
Aaron
On Mon, 1 Jul 2002, Aaron wrote:
Yup, which is why I suggested it. There could easily be a perl-fu plug-in written that accepted SOAP requests from Squeak, and a SOAP server and client running in Squeak (Squeak server may be unnec, but perhaps for callbacks in to Squeak).
Lately, I've been playing with GTK+-Perl. Working on making a few primitive Smalltalk-like tools for perl, for those times when I need to use it at work. GTK+ perl is simple enough, that a SOAP or XML-RPC driven GTK+ interface for Squeak seems quite feasbile. I may work on a proof of concept sometime in the next few weeks if I have the time.
I know, not elegant. I know, GTK+ sucks, just use Squeak. But it's fun!
Aaron
squeak-dev@lists.squeakfoundation.org