The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

SWISH::Filters::ImageTypesToXml - A filter that applies Imager::ImageTypes to index

VERSION

Version 0.05

SYNOPSIS

A SWISHE filter that takes an incoming jpg and analyzes it with Imager::ImageTypes. This filter also accepts incoming XML as long as there is a base64 image data.

If an XML file is passed into the filter it will look for the "b64_data" tag. If the xml contains this tag it will process the image that is stored in base64 format.

DEZI CONFIGURATION

Within the dezi configuration there are paremters that can be passed into the user meta data of this filter.

    { 
        engine_config => {
            ...
        },
        image_types_config => {
            generate_histogram  => 1
        }
    }

generate_histogram(1|0)

This will either dump the colors of the histogram or not. It is off by default.

METHODS

new ( $class )

Constructor. Dynamically loads Imager and Search::Tools::XML. Also sets the filter mimtype to whatever Imager supports.

filter( $self, $doc )

Generates Imager::ImageTypes meta data for indexing.

AUTHOR

Logan Bell, <loganbell at gmail.com>

BUGS

Please report any bugs or feature requests to bug-swish-filters-imagetypestoxml at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SWISH-Filters-ImageTypesToXml. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc SWISH::Filters::ImageTypesToXml

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2011 Logan Bell.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.