Web hosting ratings - 422 CHAPTER 11 PLUG-INS AND SCRIPTING Once

422 CHAPTER 11 PLUG-INS AND SCRIPTING Once the compile completes without errors, it s time to install it. Type: gimptool –install filename where filename is the file you built in the previous step. (Some very complex plug-ins may need to install more than one file, and use their own installers, usually run from a Makefile, so the user need only type make install. Creation of Makefiles and installers is outside the scope of this book.) Writing GIMP Scripts Now it s time to take a closer look at GIMP scripts. The GIMP can be scripted in three different languages: Script-Fu, Python, and Perl. They each have their advantages and disadvantages. Script-Fu (= Scheme = Lisp) Script-Fu (a pun on kung-fu ) is the GIMP s built-in scripting language. Script-Fu has one big advantage: it is always available in every version of the GIMP. If you want to write a script to distribute widely, Script-Fu is the best choice. You can be fairly sure everyone will be able to use it. In addition, most scripts distributed with the GIMP are written in Script-Fu. That means that you can find examples already installed on your system for all sorts of useful techniques. Since the easiest way to learn scripting is to copy an existing script (as you ll see in a moment), that s a big advantage. The downside of Script-Fu is that its syntax is somewhat difficult for most people. Script-Fu is actually just the GIMP s term for a language called Scheme, a dialect of Lisp. (To be even more specific, it s a dialect of Scheme called SIOD, and you can find tutorials and documentation on its syntax with a web search for SIOD. ) Lisp is a language invented in 1960 for mathematics and artificial intelligence research. The name stands for list processing, because it s very good at processing lists of items. But Lisp programmers joke that it actually stands for Lots of Irritating Stupid Parentheses, a phrase which you will readily understand after looking at some Script-Fu examples. Don t be too scared off by the parentheses. Often, you can copy bits and pieces from existing programs to make simple scripts without needing to understand much about Lisp. But if you really dislike the syntax, you may be better off with one of the GIMP s other scripting languages. Python Python is a much more modern language, created in 1990. It has a clear, straightforward syntax and is a very friendly introduction to general-purpose programming. It s also well integrated into the GIMP, so it s fairly easy to write gimp-python scripts. The only downside is that Python didn t become part of the standard GIMP install until quite recently, and was a bit tricky to install on Windows. That s been fixed now gimp-python comes as part of GIMP 2.4 though you do need the Python language installed on your system: you can get it from http://python.org if you don t already have it. You may also need the pygtk package, from http://pygtk.org.
We recommend high quality webhost to host and run your jsp application: christian web host services.

Leave a Reply