Skip to content
This repository was archived by the owner on Nov 12, 2023. It is now read-only.

ehrlich-b/sprite_packer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

This program takes a directory and packs all of the images (.jif, .png, and .gif) into a sprite that can be used by css.

Free icon sets to test with: http://www.hongkiat.com/blog/free-icon-sets-to-bookmark/

Running the program:


git clone https://github.com/adotout/sprite_packer.git
cd sprite_packer
go get "github.com/adotout/pack_2d"
go run sprite_pack.go "[icon folder]"

You should now have a file in the current directory with a file called "sprite.png" with all of the icons packed together into a sprite.

TODO


  • Output css style sheet
  • Command line flags: output file name, directory search

About

A css sprite generator written in go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages