Image::Imgur - Perl extension for uploading images to


  use Image::Imgur;
  my $key = "IMGUR-API-KEY"; # dev key
  # if you don't have imgur api key, you can get one here:
  my $url1 = $img_up->upload('');
  my $url2 = $img_up->upload('/usr/local/www/data/host.jpg');


Image::Imgur intends to make programmatically possible to upload image files to the website

The maximum non-animated file size you can upload is 10MB. However, if the image is over 1MB then it will automatically be compressed or resized to 1MB, for better viewing on the net. The maximum animated file size (both GIF and PNG) is 2MB.

This module uses LWP and Moose (Mouse will work too). Also you'll need a working internet connection (duh).

Method Summary


Given an url or a filename uploads the image to and returns the url.

SEE ALSO LWP::UserAgent Moose


D. Frumin, <lt><gt>


Copyright (C) 2010 by Ivan Ivanov

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.