NAME

Ithumb::XS - image thumbnail creation routines

DESCRIPTION

Ithumb::XS is a fast, small (one function) and simple Perl-XS module for creation a thumbnails, using Imlib2 library.

MAINTAINERS

Peter P. Neuromantic <p.brovchenko@protonmail.com>

SYNOPSIS

use Ithumb::XS ();

Ithumb::XS::convert_image({
    width     => 800,
    height    => 600,
    src_image => 'src_image.jpg',
    dst_image => 'dst_image.jpg'
});

OO-interface:

use Ithumb::XS;

my $ithumb = Ithumb::XS->new;
$ithumb->convert({
    width     => 800,
    height    => 600,
    src_image => 'src_image.jpg',
    dst_image => 'dst_image.jpg'
});

METHODS

convert_image($);

Creates a small copy (with cropping) of the image.

$_[0]->{width} - destination width
$_[0]->{height} - destination height
$_[0]->{src_image} - path to the source image
$_[0]->{dst_image} - path to the destionation result image

convert($);

Creates a small copy (with cropping) of the image for OO-interface.

$_[0]->{width} - destination width
$_[0]->{height} - destination height
$_[0]->{src_image} - path to the source image
$_[0]->{dst_image} - path to the destionation result image

LICENSE

BSD 3-Clause License

Copyright (c) 2018, 2019 Peter P. Neuromantic <p.brovchenko@protonmail.com> All rights reserved.

See LICENSE file for more details.