Skip to content

isitchristmas/flags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flags

Flags collected from Flagpedia as part of making isitchristmas.com.

The mini versions of each flag (example) are what get used over in the isitchristmas/web repository that is deployed to the actual website.

Using them

This repository uses Github Pages, so you can download each flag using the country code and the size you want.

A large Irish flag:

http://isitchristmas.io/flags/flags/IE/big.png

Each size has a guaranteed dimension:

  • mini - height of 20px
  • normal - width of 550px
  • big - width of 1600px
  • ultra - width of 2560px

Flags come in different aspect ratios, so the other dimension can vary. Check out this JSON snippet if you want to grab pre-extracted dimensions.

Note: This does not have every flag in isitchristmas.com -- only flags of sovereign nations. There are some territories and other flags that were gathered separately. This only (currently) includes flags from Flagpedia.

Also: I cannot provide HTTPS permalinks for these images, as Github Pages does not support SSL. If you want to use these images on your website and worry about showing your users mixed content warnings, you'll need to host these images elsewhere. If this seems weird to you, write Github support to request SSL support for Github Pages.

Contributions of other flags welcome!

Crawling/discovering flag URLs

You can use the Github Repo Contents API to get a quick JSON view of each directory in the repository.

To get a list of all flags, visit:

https://api.github.com/repos/isitchristmas/flags/contents/flags/?ref=gh-pages

Scoche of code

There's also a hacky Node script I used to scrape Flagpedia.

You can also use it with imagemagick to calculate the widths of each flag, if you want. But I already did that here.

License

Er, these are national flags, I'm just gonna assume they're fully public domain, hopefully that's true, have fun.

About

flags flags flags, what am I going to do with all these flags

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published