GithubHelp home page GithubHelp logo

flags's Introduction

GoSquared's Flag Icon Set

Here you'll find all the files available in our flag icon set and the tools we use to generate the downloadable file.

If you have any comments, corrections or additions then let us know with an issue or pull request

Coming soon

  • More flags
  • Flag sprites along with accompanying CSS/SCSS/SASS and tools to generate them

License and Usage

MIT, see LICENSE.txt

Building your own version of the icon set

If you want to build your own version of this flag set, with any additions or modifications, just edit the files in src/flags. Each flag has its own folder, and inside each folder there is one PNG file for each size of the flag. Also in each folder is a file called code, which contains the ISO-3166-2 country code for the flag.

To generate the full set, just run make (you may want to run make clean if you have removed any flags). To speed up generation, try running make -jN where N is the number of CPU cores you have (e.g. make -j4 on a quad-core machine)

Tools required for generating the set

  • GNU Make
  • imagemagick
  • png2icns (provided on Ubuntu by icnsutils, or via sourceforge)

flags's People

Contributors

jbt avatar simontabor avatar too-funky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flags's Issues

Todo list

(in no particular order)

  • Martinique
  • British Indian Ocean Territory
  • Saint Pierre et Miquelon
  • Curacao
  • Saint Martin
  • Aruba
  • Canary Islands
  • Basque Country
  • Sint Maarten
  • Catalonia

yarn install fails due to "*" as flags version in bower.json

When executing bower install flags --save it adds "flags": "*" to the bower.json

Later when trying to setup yarn.lock by executing yarn install it fails with exception error Couldn't find match for "*" in "master" for "https://github.com/gosquared/flags.git".

Rebuild flags

How can I rebuild?

If I rename a folder in src/flags to a new name and then run make in the root-folder I get:

pngcrush -q -brute -rem alla src/flags/{new-country}/16.png flags/flags/flat/16/{new-country}.png
make: pngcrush: No such file or directory
make: *** [flags/flags/flat/16/{new-country}.png] Error 1

Flags of countries in the United Kingdom

There are no flags for:

  • England
  • Wales
  • Northern Ireland
  • Scotland

It would be useful for projects with to soccer content, because these countries all have their own team.

Map country iso to country full name?

Do you have a map for country iso to country full name? And vice versa would be great too.

{ us:  'United States' }

Because there is a real use case.
From third-party API we have data that has country as alpha2 format.
You have both flags, country iso and country full name. But there is no map object to map iso to full name.

Do you have one? Would you please add it to repo?

two flags is wrong

for country :
-Saint Pierre And Miquelon PM
-Réunion RE
The flags that appears wrong, the flag that appears is the Kosovo flag

Licence for the Flags

Hi!

I see that your project is licenced under MIT, but usually MIT licence applies to code, not to the media files.
So I was wondering, under which licence are the flags themselves?

When I use them on my commercial project, do I have to provide credit on my website or provide a link to licence file?

No Flag Country -

Hi Folks,
You did a great job so far.
Could you please add a n/a flag that can be used for loop if there is no country flag at your API.

Thanks

Source for the original flags?

Im happy to roll my sleeves up and make some. Do you have a source where you usually get the flags? Im guessing Wikipedia?

Source

Hi, excellent work for the design of flags, but can you add a source flag at 100px+, I need big flags for a project, thanks!!

Missing Flags

US states

This'll be a lot of extra work but if I get the time I'd like to do it. Ohio'll be problematic too.

Non-Country Entities

We already have things like NATO, Red Cross, Olympics, UN, so here's some suggestions of other ones we could include:

  • CARICOM
  • CIS
  • Red Crescent
  • OPEC
  • Arab League
  • Any more that I've forgotten

Bigger sizes

Another one that'll be a hell of a lot of work, but bigger sizes going up on powers of 2 from existing sizes (96, 128, 192, 256) would be cool.

[enhancement] Add missing bower.json.

Hey, maintainer(s) of gosquared/flags!

We at VersionEye are working hard to keep up the quality of the bower's registry.

We just finished our initial analysis of the quality of the Bower.io registry:

7530 - registered packages, 224 of them doesnt exists anymore;

We analysed 7306 existing packages and 1070 of them don't have bower.json on the master branch ( that's where a Bower client pulls a data ).

Sadly, your library gosquared/flags is one of them.

Can you spare 15 minutes to help us to make Bower better?

Just add a new file bower.json and change attributes.

{
  "name": "gosquared/flags",
  "version": "1.0.0",
  "main": "path/to/main.css",
  "description": "please add it",
  "license": "Eclipse",
  "ignore": [
    ".jshintrc",
    "**/*.txt"
  ],
  "dependencies": {
    "<dependency_name>": "<semantic_version>",
    "<dependency_name>": "<Local_folder>",
    "<dependency_name>": "<package>"
  },
  "devDependencies": {
    "<test-framework-name>": "<version>"
  }
}

Read more about bower.json on the official spefication and nodejs semver library has great examples of proper versioning.

NB! Please validate your bower.json with jsonlint before commiting your updates.

Thank you!

Timo,
twitter: @versioneye
email: [email protected]
VersionEye - no more legacy software!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.