Sprite Master is a utility to automatically generate stylesheets and supporting docs from sprite sheets generated using Zwoptex.app. You can use the raw plist files generated by Zwoptex.app for coordinates or you can convert them to json using the free online tool at http://json.online-toolz.com/tools/xml-json-convertor.php
- Generates stylesheet (css) with classes for each image
- Generates documentation file with previews of each image and the css class name needed to use the image in your project
- Allow you to generate multiple colors of your sprite sheet ( using rmagick and imagick), output generated colored sprites and include color choosing selectors in css document
- xml-simple
- rmagick
- json
spritemaster [target] {options}
[target]
: the source - .plist file generated from Zwoptex.app
-i, --image [FILE]
path to sprited image, defaults to [target] with .png extension instead of .plist
-p, --prefix [STRING]
string that is prepended to generated css classes and filenames
-v, --version
prints out the version number of spritemaster
-h, --help
prints out help messages
section coming soon
(In order of contribution date)
- Michael Mottola
- Nickolas Kenyeres
We welcome anyone who wants to contribute to this project.
We encourage you to the fork the project and send us pull requests with your improvements. You will be added to the list of contributors unless you request to not be listed.
Copyright (c) 2011-2012 Michael Mottola, Nickolas Kenyeres
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.