ePages 6.10 - DE_EPAGES/MediaGallery/API/Thumbnail.pm

Package DE_EPAGES::MediaGallery::API::Thumbnail

This module creates thumbnails

@EXPORT_OK
CreateThumbnails

Functions

CreateThumbnails

CreateThumbnails

Creates thumbnails for all images in the source directory (recursively) and creates the similar directory structure in the target directory.

Syntax
CreateThumbnails($SourceDirectory, $TargetDirectory, $ImageWidth, $ImageHeight, $Quality);
Example
ExportResponse('C:\Gallery\Originals', 'C:\Gallery\Thumbnails', 100, 0, 80);
Input
$SourceDirectory (string)
path to original files, absolute or relative
$TargetDirectory (string)
path where the thumbnails will be created, absolute or relative
$ImageWidth (integer)
max width of image (optional = undef)
$ImageHeight (integer)
max height of image (optiona = undef)
$Quality (integer)
JPEG's quality - 0 = poor, 100 = best