NAME

Image::Robohash - Headless library to generate Robohash images

SYNOPSIS

use Image::Robohash;

my $robot       =  Image::Robohash->new(
	app_path      => '/path/to/robohash_package',
	req_string    => $string,
	req_set       => 'set1',
	req_bgset     => 'bg1',
	req_size      => '100x100',
	req_ignoreext => 1,
	req_ext       => 'png'
);

$robot->image->Write( '/path/to/image.png' );

DESCRIPTION

Image::Robohash is a Perl port of the Robohash library in Python. It creates images locally using a local copy of the Robohash image files available on GitHub (https://github.com/e1ven/Robohash).

In addition to this library, an example Mojolicious webapp and template are available to run a Robohash mirror. These files are currently available from the author and may be released in this distribution in the future.

This library does not generate Robohash.org URLs.

EXPORT

No functions are exported.

METHODS

$robot->image

Returns a Graphics::Magick object for the current robot image.

SEE ALSO

AUTHORS

John Wang (http://johnwang.com).

Colin Davis created Robohash.org project in Python upon which this code is based. Thanks to Colin for updating the Robohash.org code to support cross-machine robot compability based on work in this project.

COPYRIGHT AND LICENSE (The MIT License)

Copyright (c) 2011 John Wang

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 271:

'=item' outside of any '=over'

Around line 279:

You forgot a '=back' before '=head1'