https://github.com/buren/flag-sprite-maker
Make flag sprite
https://github.com/buren/flag-sprite-maker
Last synced: 3 months ago
JSON representation
Make flag sprite
- Host: GitHub
- URL: https://github.com/buren/flag-sprite-maker
- Owner: buren
- Created: 2015-06-17T13:15:38.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2021-12-03T10:06:07.000Z (over 3 years ago)
- Last Synced: 2025-01-20T05:17:10.694Z (4 months ago)
- Language: Shell
- Homepage: http://jacobburenstam.com/flag-sprite-maker/
- Size: 805 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flag Sprite Maker
Make flag sprites effortlessly from a total of 260 flags.
* Requires `imagemagick`:
- OSX (using homebrew): `brew install imagemagick`
- Ubuntu: `sudo apt-get install imagemagick --fix-missing`## Generate
1. Move all the flags you want to contact to a sprite from `flags/`
- _Note:_ If you want other names than the full country name simply rename the files
2. Run```
# All arguments are optional
./make_sprite.sh
```3. The files will be available in `output/`
- [See example output](http://jacobburenstam.com/flag-sprite-maker/example/test.html)## HTML Usage
Include the generated css file and then in your HTML-template you can write.
## Notes
Though it might be tempting to generate a sprite with __all__ the flags included, don't unless you
need them all. The flag-sprite for all countries will be ~250Kb.Thanks to [jaymzcd](https://github.com/jaymzcd) for the [gist](https://gist.github.com/jaymzcd/342399), which I've modified slightly.