circle-flags/README.md
Waldir Pimenta 69e1f8df1f Improve svgo.yml
- Remove plugins that are already the default in svgo, and link to docs
- Move the `removeDimensions` plugin to be next to `removeViewBox`
- Add configuration to the `convertPathData` and `mergePaths` plugins
  to avoid an issue with over-aggressive optimization for arcto commands
  introduced in svgo v1.3.0.

Also:

- Add missing `--config` option to the svgo command in README
- Remove over-aggressive optimization from the cv.svg flag
2020-06-12 19:37:53 +01:00

51 lines
1.8 KiB
Markdown

# circle-flags
A collection of circular SVG country flags.
## Usage
```
https://hatscripts.github.io/circle-flags/flags/xx.svg
```
(Where `xx` is the [ISO 3166-1 alpha-2 code](https://www.iso.org/obp/ui/#search/code/) of a country).
For example, the following code:
```html
<img src="https://hatscripts.github.io/circle-flags/flags/br.svg" width="48">
<img src="https://hatscripts.github.io/circle-flags/flags/ca.svg" width="48">
<img src="https://hatscripts.github.io/circle-flags/flags/gb.svg" width="48">
<img src="https://hatscripts.github.io/circle-flags/flags/jp.svg" width="48">
<img src="https://hatscripts.github.io/circle-flags/flags/mx.svg" width="48">
<img src="https://hatscripts.github.io/circle-flags/flags/us.svg" width="48">
<img src="https://hatscripts.github.io/circle-flags/flags/za.svg" width="48">
```
...produces this:<br/><br/>
<img src="https://hatscripts.github.io/circle-flags/flags/br.svg" width="48">
<img src="https://hatscripts.github.io/circle-flags/flags/ca.svg" width="48">
<img src="https://hatscripts.github.io/circle-flags/flags/gb.svg" width="48">
<img src="https://hatscripts.github.io/circle-flags/flags/jp.svg" width="48">
<img src="https://hatscripts.github.io/circle-flags/flags/mx.svg" width="48">
<img src="https://hatscripts.github.io/circle-flags/flags/us.svg" width="48">
<img src="https://hatscripts.github.io/circle-flags/flags/za.svg" width="48">
To view all the available flags, check the [gallery](all-flags.md).
## Contributing
To contribute, you need to have [svgo](https://github.com/svg/svgo) installed
(version 1.2.0 or newer).
First, edit the relevant SVG files in the `flags/` directory.
Then run `svgo` to optimize the SVG files:
```sh
svgo ./flags --recursive --config=svgo.yml
```
Then commit the changes, and submit them as a pull request.
## License
This project is released under the [MIT license](LICENSE).