Image::Imgur - Perl extension for uploading images to http://imgur.com
use Image::Imgur; my $key = "IMGUR-API-KEY"; # dev key # if you don't have imgur api key, you can get one here: http://imgur.com/register/api/ my $url1 = $img_up->upload('http://i.cdn.turner.com/cnn/.element/img/3.0/global/header/intl/hdr-globe-east.gif'); 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 http://imgur.com.
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).
D. Frumin, <lt>firstname.lastname@example.org<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.