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.
This repository uses Github Pages, so you can download each flag using the country code and the size you want.
A large Irish flag:
Each size has a guaranteed dimension:
mini
- height of 20pxnormal
- width of 550pxbig
- width of 1600pxultra
- 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!
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
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.
Er, these are national flags, I'm just gonna assume they're fully public domain, hopefully that's true, have fun.