Image::Identicon - Generate Identicon image
Version 0.02
use Image::Identicon; my $identicon = Image::Identicon->new(salt=>$salt); my $image = $identicon->render(); # or pass 32bit integer. binmode(*STDOUT); print "Content-Type: image/png\r\n\r\n"; print $image->{image}->png;
no functions exported.
Create generator.
$opts->{size} - image size $opts->{code} - 32bit integer code
Render Image. Returns hashref. $result->{image} will be GD::Image instance.
calculate 32bit Identicon code from IP address.
decode patch information from 32bit integer.
This module uses GD and Digest::SHA.
YAMASHINA Hio, <hio at cpan.org>
<hio at cpan.org>
Please report any bugs or feature requests to bug-image-identicon at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Image-Identicon. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-image-identicon at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Image::Identicon
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Image-Identicon
CPAN Ratings
http://cpanratings.perl.org/d/Image-Identicon
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Image-Identicon
Search CPAN
http://search.cpan.org/dist/Image-Identicon
http://clair.hio.jp/~hio/identicon/
Don Park originally implements identicon.
http://www.docuverse.com/blog/donpark/2007/01/18/visual-security-9-block-ip-identification
Copyright 2007 YAMASHINA Hio, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Create identicon generator.
$opts->{size} - image size (width and height) $opts->{code} - 32bit integer code
Create an identicon image. Returns hashref. $result->{image} will be GD::Image instance.
To install Image::Identicon, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Image::Identicon
CPAN shell
perl -MCPAN -e shell install Image::Identicon
For more information on module installation, please visit the detailed CPAN module installation guide.