Tools

From Open Clip Art Library Wiki

Jump to: navigation, search

Please add any insight to this page about using the tools package that is released with every Open Clip Art Library release.

These are tools that have been developed for the Open Clip Art Library. Most of them are used by the library for maintaining the collection (especially, the metadata) and in conjunction with the release process. We are releasing them here with the hope that they will be useful especially to vendors and distributors desiring to repackage and/or redistribute the Open Clip Art Library collection of clipart, or subsets of that collection.

Of note for clipart image creation is the Gimp tool (GNU Image Manipulation Program) read more at: www.gimp.org. Obviously there are other alternatives, Photoshop, etc.

These scripts also use Perl modules that are available from the CPAN, most notably the SVG::Metadata module.


The purpose of each included tool is as follows:

  • clipart-filter.pl

For producing subsets of the collection, based on the keyword metadata included in the images and the criteria you specify.

  • clipart-authority-control.pl

For managing the keyword metadata on the collection as a whole. Because of the ability to consolidate or transmute keywords, this script could be useful for internationalization and localization of the collection. This script also produces author-submission and keyword-usage statistics and the keyword index for the online search tool.

  • keyword

Also for managing the keyword metadata. The keyword tool is mainly useful for adding keywords; for other functions (such as removing or combining keywords), the authority control script is more appropriate.

  • convert-release-to-browse.pl

For rearranging the directory hierarchy. To get a different hierarchy, you will want to change the contents of the %hierarchy variable. See also the svg_validate script that is distributed with the SVG::Metadata module distribution on the CPAN.

  • propagate-metadata.pl

For propagating the metadata from a metadata.rdf file into all the SVG files in a directory tree.

  • parse-svg-validate-log.pl

This one is probably not useful outside the context of the OCAL release process. It parses the log produces by svg_validate and moves failed files aside. (The failed files are not included in the release, so if you are working from one of our releases, you should not need to do this.)

  • generate-thumbnails.pl

This script calls Inkscape for each image, to generate a PNG thumbnail.

  • openclipart-fix-unwanted-transparency

This one is designed to compensate for a bug in earlier versions of Inkscape and Sodipodi that caused unwanted transparency on some objects. We *hope* it does not remove any wanted transparency, but some manual inspection afterward is probably warranted.

  • ocal-win32-installer

This folder contains the NSIS scripts necessary to build a win32 installer for the Open Clip Art Library.

  • ConversionSVG

This software is a GUI that sends by command line to Inkscape to export in batch large collection of SVG files to PNG, PS, PDF or EPS. It features also a Wizard to help novice to use it. It's a GPL software. http://sourceforge.net/projects/conversionsvg/

Personal tools