Perl interface to Yahoo Smushit image optimizer
Latest commit 8d6adf5 Oct 3, 2011 @fvox perl files
Permalink
Failed to load latest commit information.
lib/WWW/Yahoo perl files Oct 3, 2011
t perl files Oct 3, 2011
INSTALL perl files Oct 3, 2011
LICENSE perl files Oct 3, 2011
MANIFEST perl files Oct 3, 2011
META.json perl files Oct 3, 2011
META.yml perl files Oct 3, 2011
Makefile.PL perl files Oct 3, 2011
README Starting... Oct 3, 2011
dist.ini perl files Oct 3, 2011

README

NAME
    WWW::Yahoo::Smushit - Perl interface to Yahoo Smushit image optimizer

SYNOPSIS
        my $st = new WWW::Yahoo::Smushit;

        if($st->upload_by_url('http://img3.imageshack.us/img3/562/synyrt2.jpg')) {
            printf("Image url:\t%s\nNew image:\t%s\nNew size:\t%s\nOld size:\t%s\nPercent:\t%s%%\n",
                $st->src, $st->dest, $st->dest_size, $st->src_size, $st->percent);
        }
        else {
            printf("Oops! Something is wrong...\n\nError:\t%s\n", $st->error);
        }

DESCRIPTION
    Smush.it is a service to optimize images, removing some unnecessary
    data.

METHODS
  upload_by_url($img_url)
    Send a request to the Smushit via http and retrieves the JSON object.

INTERNALS
  _create_attrs_from_json
    Get the JSON and create the attributes.

  SEE ALSO
    Smushit <http://smush.it/>.

AUTHOR
    Junior Moraes <fvox@cpan.org>

COPYRIGHT AND LICENSE
    Copyright (C) 2011 by Junior Moraes

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