Being unsatisfied with the murky looks of my native Danish flag and the (IMHO, ugly) compression of the UK one, I decided I'd do those over for my own site. Then I figured I might as well put those back up for the rest of the community. Then I decided to go all out and do this for all of the flags! (An added bonus is that most (I haven't checked all) of these new PNGs take up less bytes than the current ones. Not much, but...)
Procedure:
Found the flags on Wikipedia and ensured they were in the Public Domain.
Saved the SVGs locally and turned them into GIFs, with a height of 12px.
gif2png -nprsO *.gif
pngcrush -d new -brute -fix -reduce *.png
cd new && tar -czvf ../flags.tgz *.png
Notes:
I couldn't figure what flag to use for Arabic. The flags for Catalonia and Basque Country were licensed under GFDL and CC-sa respectively, thus not included. (Even if they probably aren't able to be licensed as such, as they consist "entirely of information that is common property and contains no original authorship", I thought it'd be safer/more polite to just leave them alone.) Hence why ar, ca, and eu are not included in this bundle.
Comments
Comment #1
pkej CreditAttribution: pkej commentedAdding flags for Norwegian Bokmål, Norwegian Nynorsk. (nn and nb) and Northern Sami (se).
Comment #2
Jose Reyero CreditAttribution: Jose Reyero commentedThese ones are different size, aren't they?
Comment #3
Freso CreditAttribution: Freso commentedThe current images aren't uniformly sized. Having them sized non-uniformly will allow the flags to actually keep their proper ratios, even when resized/uniformed - and it will allow sites to use flags in their proper ratio. (E.g. allow the Union Jack to be a bit wider than the Dannebrog.)
I'm fairly sure I presented quite some documentation about why this is a good thing in relation to a bug report where setting the (presented) flag image size to "" (empty string) yielded an error... but, alas, I can't find that one now. Anyway, forcing uniformity onto the flag image size will result in distorted images, like the not-so-pretty Dannebrog currently in the collection (which was the reason I started this little project in the first place). I still hold the claim that these images are (far?) better than the current ones, and that I don't see why non-uniformity is a bad thing, and that the current images aren't uniform with regards to size (not even height! at least this set have all height=12px).
Edit: Alright, so maybe there weren't a whole bunch of arguments, but I did note that flags currently in CVS are of different sizes and that the official flag specifications vary with regards to the dimensions. (#197403: "Undefined offset" notices when giving an empty image size.
) SeeComment #4
Jose Reyero CreditAttribution: Jose Reyero commentedThis makes sense.
However, if we are using different sized flags, we need some type of container for them, otherwise the UI won't look very nice.
We could either resize to some max width and height, then use a div container with fixed size or, maybe easier, add transparent margins to the flag so all the images are actually the same size.
Comment #5
Freso CreditAttribution: Freso commentedUhm, Jose, we are already using differently sized flags! And there's the "Image size" option on admin/settings/language/configure/icons which sets the image size and makes sure all the images appear similarly (#197403: "Undefined offset" notices when giving an empty image size fixed this for those of us who want to display the images in their proper ratio). All this batch does is update the flag graphics to be more true to the official flag colours and size ratios. Actually, this batch at least standardises on a height (12px), which is more than can be said about the images currently in the repos.
And I think I just realised that you may have simply meant something that would keep the text aligned. That is actually a good idea, but couldn't that be put into an issue of its own? I don't see why that should hold up adding these flag graphics to the repos, replacing the old ones.
Comment #6
geraldito CreditAttribution: geraldito commentedAs the flag for Catalonia at Wikipedia (http://ca.wikipedia.org/wiki/Imatge:Flag_of_Catalonia.svg) are non-free I just painted it. Attached in size 16x11.
I noticed a problem with Catalan at localizer: it uses CA as country code for Catalan but at the same time the country code top-level domain CA stands for Canada. so I just substituted the ca.png with the Catalan flag to make it work for me. but as solution I propose to change the extension localizer uses for Catalan language to CAT (official TLD for Catalan language) or AD-CA (Andorra is the only official state which uses Catalan as its official language).
Comment #7
Freso CreditAttribution: Freso commented@geraldito:
Comment #8
doomed CreditAttribution: doomed commentedHere's a flag for Portugal , 18x12 , 228 bytes (1kb)
According to Wikipedia:
Portuguese is one of the world's major languages, ranked sixth according to number of native speakers (approximately 250 million).
Btw, i did it, so its free to use.
Comment #9
doomed CreditAttribution: doomed commentedAnd inspired by the original post, i did a flag for Saudi Arabia.
I understand this is a very special flag, my drawing doesnt really have anything written in there, just something that looks like the original when seen in its original size which is 18x12 .
The S.A. flag for comparison - http://www.crwflags.com/fotw/images/s/sa.gif
Comment #10
Freso CreditAttribution: Freso commented@doomed: As part Portuguese, I miss the little thingy in the yellow patch of the flag, so here that is. I've also attached a Brazilian flag for those preferring pt-BR to pt-PT. I also gave Saudi Arabia a shot. All three flags were made exactly as described initially (fetching SVG from Wikipedia, resizing into GIF, converting to PNG, "crushing", and done).
Comment #11
doomed CreditAttribution: doomed commentedThese are great!
Comment #12
geraldito CreditAttribution: geraldito commentedHere comes the updated flag for Catalan with 16x12 px.
Comment #13
fletchgqc CreditAttribution: fletchgqc commentedHi guys,
FYI, in 6.x-1.x-dev the Polish flag is missing. At least it's not working in my installation.
Comment #14
Freso CreditAttribution: Freso commentedSetting this back to CNR to catch José's attention to my comment #5.
@fletchgqc: That's because there's no Polish flag in the current package. Upload the attached file into your i18n/flags folder and it should work. :)
Comment #15
fletchgqc CreditAttribution: fletchgqc commentedThanks - well I'm still in dev so as long as the flag makes its way into the package I'm happy!
Comment #16
Jose Reyero CreditAttribution: Jose Reyero commentedComment #17
kerberos CreditAttribution: kerberos commentedHere's the flag for Romania (.ro) - my creation and free to use.
Comment #18
Freso CreditAttribution: Freso commented@ Jose:
What's holding this back? Did you read my comment/rebuttal #5?
Comment #19
Freso CreditAttribution: Freso commentedRefreshed flags committed. Flags that did not already exist have not been added. Please open new issues for these.
Comment #20
seventhguardian CreditAttribution: seventhguardian commentedThe pt-pt and pt-br are not yet commited.
And please keep the file names lowercase.
Comment #21
Freso CreditAttribution: Freso commentedAnd you already did: #296104: Add flags for Portuguese
Comment #22
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.