WebService::Images::IMGSpot - upload an image to http://www.imgspot.com/
use WebService::Images::IMGSpot; my $imgspot = WebService::Images::IMGSpot->new(); $imgspot->upload({ file => '/path/to/file.png' }); # ... or $imgspot->upload('/path/to/yet_another_file.png'); $imgspot->host('/path/to/yet_another_file.png');
WebService::Images::IMGSpot uploads a file to http://www.imgspot.com/ for you, as long as the file is not bigger than 650 KB, and the format is .JPG, .JPEG, .GIF, and .PNG.
WebService::Images::IMGSpot
new creates a new WebService::Images::IMGSpot object.
new
Sets the LWP::UserAgent object used internally so that it can the customised.
This method takes either a scalar (like Image::ImageShack) or a hashref (like WebService::Images::Nofrag). It will do some basic checking and croaks where it sees fit ;-)
The method returns the URL of where your image is hosted.
An alias for the method upload (just like Image::ImageShack.
url is a method that can be called after upload, to retrieve the URL to the hosted image (just like WebService::Images::Nofrag).
url
Please report any found bugs to http://rt.cpan.org/Public/Dist/Display.html?Name=WebService-Images-IMGSpot or contact the author.
M. Blom, <blom@cpan.org>, http://menno.b10m.net/perl/
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
NOTE: Please see http://www.imgspot.com/TOS.php for the Terms of Service of IMGSpot.
http://www.imgspot.com/
Image::ImageShack, WebService::Images::Nofrag
1 POD Error
The following errors were encountered while parsing the POD:
=over without closing =back
To install WebService::Images::IMGSpot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Images::IMGSpot
CPAN shell
perl -MCPAN -e shell install WebService::Images::IMGSpot
For more information on module installation, please visit the detailed CPAN module installation guide.