ePages 7.1.0 - DE_EPAGES/Core/API/ImageOptimization.pm

Package DE_EPAGES::Core::API::ImageOptimization

This module provides an API for image optimizations tools like optipng.

@EXPORT_OK
OptiPng
MassOptiPng

Functions

MassOptiPng
OptiPng

MassOptiPng

Apply external OptiPng application to optimize the file size of the final png images. Uses executeable version of OptiPng via SystemCommand.

Syntax
my $ReturnCode = MassOptiPng($aActualFullFileName, $hOptions);
Example
$self->OptiPng(["C:\\temp\\test.png", "C:\\temp\\test2.png"]);
Input
$aActualFullFileName (string)
full file path-name of the image to optimize
$hOptions (ref.hash)
options
  • optipngmethod - (optional) use this optipng method

OptiPng

Apply external OptiPng application to optimize the file size of the final png image. Uses executeable version of OptiPng via SystemCommand.

Syntax
my $ReturnCode = OptiPng($ActualFullFileName, $hOptions);
Example
$self->OptiPng("C:\\temp\\test.png");
Input
$ActualFullFileName (string)
full file path-name of the image to optimize
$hOptions (ref.hash)
options
  • optipngmethod - (optional) use this optipng method