++ed by:
BKB
Author image Savio Dimatteo
and 1 contributors

Changes for version 0.07

  • allow custom target image filename in CSS stylesheet generation
  • allow override of the generated CSS class name (e.g., add a prefix)
  • remove '+' characters during CSS class generation
  • allow parts of combined layout to be hidden in CSS
  • nicer html preview of CSS image sprites
  • allow composite layouts without glue layout

Modules

Combine several images into a single CSS sprite
Layout interface for items placed on a 2D grid.
my $DirectoryBasedLayout = CSS::SpriteMaker::Layout::DirectoryBased->new( { "1" => { width => 128, height => 128, pathname => '/full/path/to/file1.png', parentdir => '/full/path/to', }, ... } );
my $FixedDimensionLayout = CSS::SpriteMaker::Layout::FixedDimension->new( # example $rh_item_info input structure { "1" => { width => 128, height => 128, }, ... }, # max 10 items on the same row, { dimension => 'horizontal', n => 10 }, );
Layout items trying to minimize the size of the resulting file.
A node of the Packed Layout