++ed by:
BRDUCH

1 PAUSE user
1 non-PAUSE user.

Peter P. Neuromantic
and 1 contributors

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::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.

$_[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.