Comments (5)
Google has their flags as 48x32 (link) and they show them as 24x16 images (e.g. in Google Contacts on the phone field), so Retina displays handle the images gracefully.
Talking about sprites, I'd like to suggest an idea voiced here on Stackoverflow.com to save the flags in a grid according to the country ISO2 code, where 1st letter -> vertical position and 2nd letter -> horizontal position. So the flag location can be calculated with a very easy function on the client side without the need of 200+ extra style definitions.
from country-flags.
I think create custom image size (from imagemin), default size one flag 1x - 20x14 px, 2x 40x28 px
or add npm build map command.
from country-flags.
What resolution would be appropriate for such a mapping? 100x100?
from country-flags.
I think a sprite image is really necessary. 48 * 48 would be good
from country-flags.
There are lots of tools that take separate images and combines them to create a single sprite. Rather than re-create that work here, just use google to find one of the tools.
Here's one example: https://github.com/sprity/sprity
from country-flags.
Related Issues (20)
- No default jsDelivr CDN file set HOT 1
- How to use this in a project? HOT 1
- Benelux (bx) Flag HOT 1
- Uniform Aspect Ratio HOT 1
- if you see :error while loading shared libraries: libgtk-3.so HOT 1
- Awesome Repository! HOT 1
- New Caledonian flag HOT 1
- The flag for Afghanistan is out-of-date HOT 3
- ISO code of albanian flag is wrong? HOT 1
- Extra colours in png files. Anti-aliased? HOT 1
- No package release on GitHub HOT 1
- Create 1x1 svg flags HOT 1
- Latest package version does not include all changes from master branch HOT 1
- Remove pre-built PNGs HOT 2
- Flag of Brazil in svg form is not loading HOT 1
- Missing Ukraine svg HOT 1
- Add Chinese Taipei flag HOT 3
- Honduras flag is out of date
- Optimize SVGs? HOT 2
- gs.svg letters are out of place
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from country-flags.