Origami Frontend Components & Services

Readme: origami-flag-images

An image set of world flags.

Usage

As with all image sets, these are available via the Image Service.

To get a flag from the Image Service, use the following URL (replace the product_source with your product name and flag_name with the ISO ALPHA-2 country code for the place you want)

https://www.ft.com/__origami/service/image/v2/images/raw/ftflag:{flag_name}?source={product_source}

So to get Japan:
https://www.ft.com/__origami/service/image/v2/images/raw/flag:jp?source=test

Getting these flags in a different format/size

The Image Service will convert these images on the fly if you pass in the right parameters. To find out more about this, please see the Image Service documentation

## Adding or modifying flags

To keep flags consistent, please follow these guidelines:

Please do not delete flags without talking to the Origami team who will need to manage the deprecation process


Contact

If you have any questions or comments about this component, or need help using it, please either raise an issue, visit #ft-origami or email Origami Support.


Licence

This software is published by the Financial Times under the MIT licence.

Icons in this repository are taken from flag-icon-css, also published under the MIT licence.

Switch component view

GitHub Repository

Include images in your project

Images from "origami-flag-images" can be loaded directly using the Image Service.

To load an image from this image set, use the following Image Service URL:

https://www.ft.com/__origami/service/image/v2/images/raw/ftflag-v1:{image-name}?source={your-source-here}

See the Image Service documentation for more.

Download images

To add images to your project we recommend using the Image Service. However you may download the full image set using the button below. It will download the Github repository, with all the image files in a sub folder.

Download the Imageset
Add/update an image

To request a new image, or to change an existing image, please create an issue on Github. For support please get in touch 😊

Slack: #ft-origami
Email: origami.support@ft.com

Support Details

Slack: #ft-origami
Email: origami.support@ft.com