http post or ftp post
This discussion is connected to the gimp-developer-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.
http post or ftp post | Nico | 25 Jul 15:12 |
http post or ftp post | Joao S. O. Bueno | 25 Jul 19:27 |
http post or ftp post | Nico | 26 Jul 22:38 |
http post or ftp post | Nico | 26 Jul 22:45 |
http post or ftp post | Kevin Cozens | 27 Jul 16:13 |
http post or ftp post
Hi
Is it possible to send data (http and/or ftp) in a script-fu plugin ?
Some examples ?
Wich way ?
Nico
http post or ftp post
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 ->
http post or ftp post
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
->
http post or ftp post
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
->
http post or ftp post
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.