WWW::Google::Images::Image - Image object for WWW::Google::Images


WWW-Google-Images documentation  | view source Contained in the WWW-Google-Images distribution.

Index


NAME

Top

WWW::Google::Images::Image - Image object for WWW::Google::Images

Constructor

Top

new($agent, $content, $context)

Creates and returns a new WWW::Google::Images::Image object.

Accessors

Top

$image->content_url()

Returns the url to the image file itself.

$image->context_url()

Returns the url to the web page including the image.

Other methods

Top

$image->save_content(%args)

Save the image file. The default is to keep its original file name, but this behavior can be altered using optional parameters.

Optional parameters:

file => $file

Use $file as file name.

dir => $directory

Use $directory as a directory path to save the file. If only 'file' is specified, it will be saved in a path relative to the current working directory.

base => $base

Use $base with lowercase original extension added as file name.

$image->save_context(%args)

Save the web page. The default is to keep its original file name, but this behavior can be altered using optional parameters.

Optional parameters:

file => $file

Use $file as file name.

dir => $directory

Use $directory as a directory path to save the file. If only 'file' is specified, it will be saved in a path relative to the current working directory.

base => $base

Use $base with lowercase original extension added as file name.

COPYRIGHT AND LICENSE

Top

AUTHOR

Top

Guillaume Rousse <grousse@cpan.org>


WWW-Google-Images documentation  | view source Contained in the WWW-Google-Images distribution.