The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Ithumb::XS - Image thumbnail creation routines

DESCRIPTION

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

AUTHOR

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

SYNOPSIS

  use Ithumb::XS ();

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

FUNCTIONS

create_thumbnail($)

Creates a small copy (resizing and cropping) of the image.

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

LICENSE AND COPYRIGHT

BSD 3-Clause License

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

See LICENSE file for more information.