NAME
Blio::Image - An image node
VERSION
version 2.006
SYNOPSIS
my $image_node = Blio::Image->new(
base_dir => $blio->source_dir,
source_file => 'relative/path/to/image.jpg',
);
$image_node->make_thumbnail( $blio, 450 );
$image_node->publish( $blio );
DESCRIPTION
You probably won't need to use Blio::Image
directly.
METHODS
publish
$image_node->publish( $blio );
Write the image file into the output_dir. Create all directories that are needed.
make_thumbnail
$image_node->make_thumbnail( $blio, $width );
Generate a thumbnail image and store it in output_dir.
If $width
is not passed in, the default width from $blio
is used.
<Path::Class::Dir> object pointing to the source_dir of this Blio
instance.
<Path::Class::File> object pointing to the source image file. The file format has to be supported by Imager
. I would strongly suggest using jpeg or png.
Relative <Path::Class::File> object pointing to the non-scaled image. This can be used in templates to link to the img.
Relative <Path::Class::File> object pointing to the thumbnailed image. This can be used in templates to link to the thumbnail.
AUTHOR
Thomas Klausner <domm@plix.at>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 - 2022 by Thomas Klausner.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
4 POD Errors
The following errors were encountered while parsing the POD:
- Around line 100:
Unknown directive: =attribute
- Around line 104:
Unknown directive: =attribute
- Around line 108:
Unknown directive: =attribute
- Around line 112:
Unknown directive: =attribute