Go to file
Kailash Nadh 097d4721ea First commit 2013-06-04 14:40:29 +05:30
csssprite First commit 2013-06-04 14:40:29 +05:30
README.md First commit 2013-06-04 14:40:29 +05:30
setup.py First commit 2013-06-04 14:40:29 +05:30

README.md

csssprite

A simple Python utility for merging images into a sprite with accompanying CSS

Installation

With pip or easy_install

pip install csssprite or easy_install csssprite

or from source

python setup.py install

Usage

Once the package is installed, the commandline utility csssprite should become available system wide

csssprite --in "./images" --out "./"" --name "buttons"

Arguments

--in		path to directory containing images
--out		path to the directory where image+css should be generated
--name		name of the output image and layer id in the css (default=sprite)
--orientation	orientation of sprites. horizontal or vertical (default)
--spacing		distance between individual tiles (default=30)
--filetype		image filetype (default=png)