Re: [Gimp-developer] http post or ftp post

2009-07-27 Thread Kevin Cozens
Nico wrote:
 Is it possible to send data (http and/or ftp) in a script-fu plugin ?
   
It is not possible to do this with a default installation of GIMP. 
Socket handling functions exist for the TinyScheme interpreter in 
something called TinyScheme Extensions (tsx) which can be found at 
http://heras-gilsanz.com/manuel/tsx.html

It is a set of run-time loadable extensions for TinyScheme that adds 
functions related to sockets, file I/O, date and time, plus getenv and 
system calls. Currently, the loading of TinyScheme extensions is 
disabled by default.

If you want to get your hands dirty you could get tsx working with 
Script-Fu but it would require compiling GIMP (or the Script-Fu 
component) yourself. Run-time loadable extensions would need to be 
enabled, tsx compiled to exclude building of its file I/O and date 
routines (which are already included in Script-Fu), then building and 
installing tsx.

Admittedly, it is not something that average user would want to tackle. 
I was planning on enabling the run-time loading of extensions by 
TinyScheme. Perhaps, now is the time to do itn.

-- 
Cheers!

Kevin.

http://www.ve3syb.ca/   |What are we going to do today, Borg?
Owner of Elecraft K2 #2172  |Same thing we always do, Pinkutus:
|  Try to assimilate the world!
#include disclaimer/favourite |  -Pinkutus  the Borg 

___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] http post or ftp post

2009-07-26 Thread Nico
Joao S. O. Bueno a écrit :
 On Saturday 25 July 2009, Nico wrote:
 Hi

 Is it possible to send data (http and/or ftp) in a script-fu plugin ?
 Some examples ?
 Wich way ?

 Nico
 
 The Scheme intrpreter used in script-fu it is there because an scheme 
 interpreter is tiny enough to fit inside the source tree. (And for historical 
 reasons as well, of course.) There are no libraries or moduyle to provide the 
 tiny-fu scheme with much outside the GIMP API and some basic file I/O.
 So, while with unixish systems it is possible to provide a pipe/socket setup 
 to make tiny-fu scripts answer network requests, that is not the way to do it.
 
 For doing larger applications, you should use plug-ins in a language that can 
 make full use of libraries and modules manintained outside of the GIMP 
 project.  The oficial high level language supported for GIMP plug-ins is 
 Python, and it is  easy to make data available via vairous network protocols 
 using Python's standard libraries.
 
 There re also gimp bindings for perl (although I think this is currently 
 unmaintained) and ruby should you prefer these languages. 
 

Thanks for answer.

Is it a link to begin with python-fu ?

Nico

   js
   --
 
 
 
 ___
 Gimp-developer mailing list
 Gimp-developer@lists.XCF.Berkeley.EDU
 https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer



___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] http post or ftp post

2009-07-26 Thread Nico
Nico a écrit :
 Joao S. O. Bueno a écrit :
 On Saturday 25 July 2009, Nico wrote:
 Hi

 Is it possible to send data (http and/or ftp) in a script-fu plugin ?
 Some examples ?
 Wich way ?

 Nico
 The Scheme intrpreter used in script-fu it is there because an scheme 
 interpreter is tiny enough to fit inside the source tree. (And for 
 historical 
 reasons as well, of course.) There are no libraries or moduyle to provide 
 the 
 tiny-fu scheme with much outside the GIMP API and some basic file I/O.
 So, while with unixish systems it is possible to provide a pipe/socket setup 
 to make tiny-fu scripts answer network requests, that is not the way to do 
 it.

 For doing larger applications, you should use plug-ins in a language that 
 can 
 make full use of libraries and modules manintained outside of the GIMP 
 project.  The oficial high level language supported for GIMP plug-ins is 
 Python, and it is  easy to make data available via vairous network protocols 
 using Python's standard libraries.

 There re also gimp bindings for perl (although I think this is currently 
 unmaintained) and ruby should you prefer these languages. 

 
 Thanks for answer.
 
 Is it a link to begin with python-fu ?

ok sorry : http://www.gimp.org/docs/python/pygimp.html

 
 Nico
 
   js
   --



 ___
 Gimp-developer mailing list
 Gimp-developer@lists.XCF.Berkeley.EDU
 https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
 
 
 
 ___
 Gimp-developer mailing list
 Gimp-developer@lists.XCF.Berkeley.EDU
 https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer



___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


[Gimp-developer] http post or ftp post

2009-07-25 Thread Nico
Hi

Is it possible to send data (http and/or ftp) in a script-fu plugin ?
Some examples ?
Wich way ?

Nico


___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] http post or ftp post

2009-07-25 Thread Joao S. O. Bueno
On Saturday 25 July 2009, Nico wrote:
 Hi

 Is it possible to send data (http and/or ftp) in a script-fu plugin ?
 Some examples ?
 Wich way ?

 Nico

The Scheme intrpreter used in script-fu it is there because an scheme 
interpreter is tiny enough to fit inside the source tree. (And for historical 
reasons as well, of course.) There are no libraries or moduyle to provide the 
tiny-fu scheme with much outside the GIMP API and some basic file I/O.
So, while with unixish systems it is possible to provide a pipe/socket setup 
to make tiny-fu scripts answer network requests, that is not the way to do it.

For doing larger applications, you should use plug-ins in a language that can 
make full use of libraries and modules manintained outside of the GIMP 
project.  The oficial high level language supported for GIMP plug-ins is 
Python, and it is  easy to make data available via vairous network protocols 
using Python's standard libraries.

There re also gimp bindings for perl (although I think this is currently 
unmaintained) and ruby should you prefer these languages. 

  js
  --



___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer