Labyrinth::DIUtils::ImageMagick - Digital Image utilities driver for ImageMagick.
use Labyrinth::DIUtils::ImageMagick; Labyrinth::DIUtils::Tool('ImageMagick'); my $hook = Labyrinth::DIUtils::ImageMagick->new($file); my $hook = $hook->rotate($degrees); # 0 - 360 my $hook = $hook->reduce($xmax,$ymax); my $hook = $hook->thumb($thumbnail,$square);
Handles the driver software for ImageMagick image manipulation; Do not use this module directly, access via Labyrinth::DIUtils.
The constructor. Passed a single mandatory argument, which is then used as the image file for all image manipulation.
Object Method. Passed a single mandatory argument, which is then used to turn the image file the number of degrees specified.
Object Method. Passed two arguments (defaulting to 100x100), which is then used to reduce the image to a size that fit inside a box of the specified dimensions.
Object Method. Passed two arguments, the first being the name of the thumbnail file to be created, and the second being a single dimension of the square box (defaulting to 100), which is then used to reduce the image to a thumbnail.
Image::Magick, Labyrinth, Labyrinth::DIUtils::GD
Barbie, <barbie@missbarbell.co.uk> for Miss Barbell Productions, http://www.missbarbell.co.uk/
Copyright (C) 2002-2015 Barbie for Miss Barbell Productions All Rights Reserved. This module is free software; you can redistribute it and/or modify it under the Artistic License 2.0.
To install Labyrinth::DIUtils::ImageMagick, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Labyrinth::DIUtils::ImageMagick
CPAN shell
perl -MCPAN -e shell install Labyrinth::DIUtils::ImageMagick
For more information on module installation, please visit the detailed CPAN module installation guide.