NAME

Index Maker


SYNOPSIS

gimp::Xtns::Render::IndexMaker


DESCRIPTION

Index Maker is a Gimp plugin.It generates a picture file from all pictures it finds in a specified path.A thumbnail is generated from each picture with a desired global scale or X or Y fixed...


API Description

The script contains some functions that implement a very rudimentary API.

functions

here are some helper functions for the main function:

get_all_images
scans a directory for images and returns everything found as array of filenames, with relative pathnames from the topdir specified

parameters: 1. directoryname to scan

            2. switch to indicate if it should run in recursive manner

returns: Array of filenames

save_pic
saves picture to specified filename

parameters: 1. image handle

            2. active layer

            3. name template for the file

            4. count of index files to include in filename

TODO:       remove param 1+2, they are not realy necessary, when switching to OO            
returns:    nothing

new_image
creates new image and a base layer in the background color

parameters: 1. width of the new image

            2. height " " " "

returns: Handle to newly created image.

index_maker
the function doing it all.

parameters: 1. path to scan

            2. unused framecolor

            3. unused font
            4. recursive switch
            5. paint color
            6. background color
            7. nametemplate for the idx files
            8. columns of thumbnails per page
            9. rows of thumbnails per page
            10. border percentage
            11. paper height in pixel
            12. paper width  "  "

returns: nothing of interest


AUTHOR

Written by Volker Heitz (mailto:perl@promotec.lu), (c) 2001 see http://promotec.lu for further information, i will add a download topic, where you can find information about this script and other toys and libraries I have written. Made public under the terms of GPL(http://www.gpl.org)