Ithumb::XS
Ithumb::XS is a very small (one function) and simple Perl-XS module for creation a thumbnails, using Imlib2 library.
Peter P. Neuromantic <p.brovchenko@protonmail.com>
use Ithumb::XS;
Ithumb::XS::create_thumbnail('src.png', 100, 100, 'output.png');
Creates a small copy (with cropping) of the image.
$source_image - full path to source image $width - destination width $height - destination height $dst_image - full path to destionation result image
To install Ithumb::XS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ithumb::XS
CPAN shell
perl -MCPAN -e shell install Ithumb::XS
For more information on module installation, please visit the detailed CPAN module installation guide.