Skip to content

Node js tool to create sprite image of flags of nations

License

Notifications You must be signed in to change notification settings

jsramraj/flag-sprite-creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flag-sprite-creator

A tool to create single sprite image from all the flag images of nations

The sprite image created from this tool is intended for the flags android library project, but you can use it anywhere as you wish.

Live demo here

Simply put, when you input flag like this 🇯🇵 🇰🇷 🇩🇪 🇨🇳 🇺🇸 🇫🇷 🇪🇸 🇮🇹 🇷🇺 🇬🇧, to this tool, this will create a sprite image like the following

Usage

  1. Open the following link in your browser
  2. Upload a zip file that contains all the flags (flag names should only be ISO standard code as mentioned here)
  3. Enter the size of individual flag image
  4. Click the Convert button
  5. You should be seeing the sprite image after the conversion finishes. (Make sure you enable the popup for this page)

Where to get the raw flag image?

You can download the flag images for all the countries in your desired resolutions from the FLAGPEDIA website. Use only the PNG option

License

MIT