Dave Rolsky > Rudesind > Rudesind::Image

Download:
Rudesind-0.04.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

Rudesind::Image - An object representing a single image

SYNOPSIS ^

  use Rudesind::Gallery;

  my $img = Rudesind::Gallery->image('IMG_0101.JPG');

  print $img->file;

DESCRIPTION ^

This class represents a single image. It provides methods for accessing information on that image, as well as creating transformed versions of the image (resizing, rotating, etc.).

CONSTRUCTOR ^

Image objects should be constructed by calling the image() method on a Rudesind::Gallery object.

METHODS ^

This class provides the following methods:

Transforms

For any method that accepts transforms, you can specify any of the following:

It is possible to pass multiple transforms at once, so you could do this:

  my $file = $image->make_transformed_image_file( 'double', 'rotate-90' );

This produces an image to which both the "double" and "rotate-90" transforms have been applied, in the specified order.

Captions

This class uses the Rudesind::Captioned role.

syntax highlighting: