The Gimp::Fu register( ) Method
The register( ) method takes
a list of 12 parameters:
nameThe name of this script, as it is to appear in the PDB. This name can be used by other plug-ins to call this script. If the name of the script does not begin with “perl_fu_”, “plug_in”, “extension_”, or “file_”, then “perl_fu_” is prepended to the provided name. To circumvent this behavior, prepend a single plus sign (+) to the name.
blurbA short description of the script. This blurb appears in the user input window generated by Gimp::Fu. It is best to format all of your documentation in Perl’s POD format. The blurb argument defaults to
=pod(NAME).helpA longer description of the script. This blurb appears when the help button is selected within the user input window generated by Gimp::Fu. The help argument defaults to
=pod(HELP).authorYour name and some sort of contact information. The author argument defaults to
=pod(AUTHOR).copyrightThe name of the script’s copyright holder. The copyright argument defaults to
=pod(AUTHOR).dateThe last modified date, e.g., “2003-8-16”. The date argument defaults to
=pod(DATE).menu_pathA string describing the location of the script in the Gimp’s menu hierarchy, e.g., “<Image>/Filters/Misc/Foo Filter”. The string should begin with “<Image>” for the image menu structure, “<Toolbox>” for the toolbox menu structure, “<Save>” or “<Load>” if the script is a file format writer/reader, or “<None>” if the script should not have a menu entry.
image_typesA string listing ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access