Image::Identicon - Generate Identicon image


Image-Identicon documentation  | view source Contained in the Image-Identicon distribution.

Index


NAME

Top

Image::Identicon - Generate Identicon image

VERSION

Top

Version 0.03

SYNOPSIS

Top

  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;

EXPORT

Top

no functions exported.

METHODS

Top

$pkg->new({ salt=>$salt })

Create identicon generator.

$identicon->render(\%opts)

 $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.

$identicon->identicon_code()

calculate 32bit Identicon code from IP address.

$identicon->decode($code)

decode patch information from 32bit integer.

DEPENDENCY

Top

This module uses GD and Digest::SHA.

AUTHOR

Top

YAMASHINA Hio, <hio at cpan.org>

BUGS

Top

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.

SUPPORT

Top

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

EXAMPLE

Top

http://clair.hio.jp/~hio/identicon/

ACKNOWLEDGEMENTS

Top

Don Park originally implements identicon.

http://www.docuverse.com/blog/donpark/2007/01/18/visual-security-9-block-ip-identification

COPYRIGHT & LICENSE

Top


Image-Identicon documentation  | view source Contained in the Image-Identicon distribution.