https://github.com/knadh/csssprite
A simple utility for merging images into a sprite with accompanying CSS
https://github.com/knadh/csssprite
Last synced: 3 months ago
JSON representation
A simple utility for merging images into a sprite with accompanying CSS
- Host: GitHub
- URL: https://github.com/knadh/csssprite
- Owner: knadh
- Created: 2013-06-04T08:53:18.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2025-05-02T16:09:27.000Z (about 1 year ago)
- Last Synced: 2026-02-13T07:59:41.044Z (4 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# csssprite
A simple Python utility for merging images into a sprite with accompanying CSS
- [Kailash Nadh](http://nadh.in), June 2013
- License: GPL v2
- [PyPi](https://pypi.python.org/pypi/csssprite)
## 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)
```