Command line image sprite generator in PHP
PHP
Latest commit 88cbe22 Jul 17, 2015 Tim Whitlock added recursive flag
Permalink
Failed to load latest commit information.
libs corrected colours May 6, 2014
.gitmodules added initial files Apr 24, 2013
MIT-LICENSE.txt added initial files Apr 24, 2013
README.md added basic instructions Apr 25, 2013
sprite.php added recursive flag Jul 17, 2015

README.md

php-sprite

Command line image sprite generator in PHP.

Usage

# check it out
git clone --recursive git://github.com/timwhitlock/php-sprite.git
cd php-sprite

# copy in some images to test
mkdir images
cp -pvr ~/some/pics/* images

# run it
php -d "open_basedir=`pwd`" -f sprite.php -- -d images > images/sprite.css

# sprite is saved in images/sprite.png, css is piped to images/sprite.css
ls -l images/sprite*

# look at the other options
php -d "open_basedir=`pwd`" -f sprite.php -- --help