The code will normally display a new image if it creates one, and also return the new image, in accordance with the return types declared in parameter 10 of the podregister call described above. You will also note that “plug_in_” has been omitted from the method call above, and that not all its parameters appear to be getting passed! This is thanks to the object-oriented implementation in Gimp-Perl, which when given a method name, searches various prefixes for the underlying function including the plug-in related ones (including script_fu_). #!/usr/bin/perl -w use Gimp use Gimp::Fu podregister #. This tutorial will go into detailed descriptions of the construction of a Gimp::Fu script, but before we do this, here is the general framework of such a script. Gimp::Fu provides a framework for entering parameters to the script in a dialog-box interface, just like Script-Fu, but also allows running of the script in batch mode from the command line. Most scripts make use of the simplified interface Gimp::Fu provided with the Gimp module. GIMP (GNU Image Manipulation Program) is a free software raster graphics editor. GIMP is an open-source and free Photoshop alternative (for Windows). Perl and all its associated modules are available in source form from the Comprehensive Perl Archive network, CPAN. Free and open source image composition software download, reviewed by Tina de Pierre. The Gimp-Perl module, version 2.3 or later, available from.The perl module Gtk2, version 1.249, available from. The tutorial scripts have been tested on Linux (a Windows version is in the works) with the following versions: This tutorial will describe how to write such plug-ins and scripts for Gimp.Īs there are several excellent tutorial texts describing the perl language, this tutorial will assume a working knowledge of Perl, and will instead concentrate on the use of GIMP together with the perl modules Gimp and Gimp::Fu. Perl has CPAN, giving access to vast numbers of modules to get things done. Available scripting environments include Scheme through Script-Fu and Python. One of the wonderful features of GIMP is that it all its functionality may be accessed through scripting. It has been updated to Gimp-Perl 2.3 and GIMP 2.8. This work is a slightly modified version of Dov Grobgeld’s excellent tutorial.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |