Package DE_EPAGES::Presentation::Scripts::Sprites::Util
Utility class for Sprite Composer
Package DE_EPAGES::Presentation::Scripts::Sprites::SpriteUtil
@EXPORT_OK |
Functions
MergeOptions
Merges options from command line with options from configuration file
Example |
my $hMergedOptions = MergeOptions(\%CommandLineOptions, $hConfigFileOptions); |
Input |
|
Return |
|
OptiPng
Apply external OptiPng application to optimize the file size of the final png image. Uses executeable version of OptiPng via SystemCommand.
Example |
$self->OptiPng("C:\\temp\\test.png"); my $SavedInPercent = $self->OptiPng("C:\\temp\\test.png"); |
Input |
|
Return |
|
PngCrush
Apply external pngcrush application to optimize the file size of the final png image. Uses executeable version of pngcrush via SystemCommand. See also: http://sourceforge.net/projects/optipng/ http://sourceforge.net/projects/pmt/
Example |
$self->PngCrush("C:\\temp\\test.png"); my $SavedInPercent = $self->PngCrush("C:\\temp\\test.png"); |
Input |
|
Return |
|
ReadConfigFile
Reads config parameters from given file
Example |
my $hConfigFileOptions = $class->ReadConfigFile(__FILE__); |
Input |
|
Return |
|
ReplaceMarkers
Replace the markers with ENV variable values or the given option values.
Example |
$TargetFileName = ReplaceMarkers( $self->{'csstargetdirectoryrelative'}.CorrectPathSlashes('/').$TargetFileName, {'cartridge' => $CartridgeName} ); |
Input |
|
Return |
|