NAME

Ithumb::XS - Fast, small and simple image thumbnailazer, based on Imlib2 library.

DESCRIPTION

Ithumb::XS is a very small (one function) and fast 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::create_thumbnail({
    width     => 800,
    height    => 600,
    src_image => 'source_image.jpg',
    dst_image => 'destination_result_image.jpg'
});

OO-interface:

use Ithumb::XS;

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

METHODS

create_thumbnail($);

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

$width - destination width
$height - destination height
$src_image - path to the source image
$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.