SpritePacker is a PHP tool to create sprite atlases automatically from an existing image folder.