Skip to content

Commit

Permalink
Replace some PNG flags with their SVG versions
Browse files Browse the repository at this point in the history
Ideally all the remaing PNG flags would be replaced with SVG versions,
but some of the SVG's on wikimedia are rather large. The criterion for
choosing which to replace was if the SVG optimised with svgo was
not larger than 50 kB.
  • Loading branch information
aplaice committed Jul 28, 2019
1 parent 0fa6cd8 commit 765760e
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions sources.csv
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ug-flag-afghanistan.png,https://commons.wikimedia.org/wiki/File:Flag_of_Afghanis
ug-flag-aland_islands.svg,,,
ug-flag-albania.svg,,,
ug-flag-algeria.svg,,,
ug-flag-american_samoa.png,,,
ug-flag-american_samoa.svg,https://commons.wikimedia.org/wiki/File:Flag_of_American_Samoa.svg,PD,optimised with svgo
ug-flag-andorra.png,,,
ug-flag-angola.svg,,,
ug-flag-anguilla.svg,,,
Expand Down Expand Up @@ -81,7 +81,7 @@ ug-flag-european_union.svg,,,
ug-flag-falkland_islands.svg,,,
ug-flag-faroe_islands.svg,,,
ug-flag-federated_states_of_micronesia.svg,,,
ug-flag-fiji.png,,,
ug-flag-fiji.svg,https://commons.wikimedia.org/wiki/File:Flag_of_Fiji.svg,PD,optimised with svgo
ug-flag-finland.svg,,,
ug-flag-france.svg,,,
ug-flag-french_polynesia.svg,,,
Expand Down Expand Up @@ -219,7 +219,7 @@ ug-flag-south_africa.svg,,,
ug-flag-south_korea.svg,,,
ug-flag-south_ossetia.svg,,,
ug-flag-south_sudan.svg,,,
ug-flag-spain.png,,,
ug-flag-spain.svg,https://commons.wikimedia.org/wiki/File:Flag_of_Spain.svg,PD,optimised with svgo
ug-flag-sri_lanka.svg,,,
ug-flag-sudan.svg,,,
ug-flag-suriname.svg,,,
Expand Down
6 changes: 3 additions & 3 deletions src/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ his*oE$.bt,"San Marino","San Marino",,,"City of San Marino","San Marino",,,,,"<i
sU}vJmyFCk,Serbia,Serbien,,,Belgrade,Belgrad,,,,,"<img src=""ug-flag-serbia.png"" />",,,"<img src=""ug-map-serbia.png"" />","UG::Europe UG::Sovereign_State"
o_Qs1fsA*`,Slovakia,Slowakei,,,Bratislava,Bratislava,,,,,"<img src=""ug-flag-slovakia.svg"" />",,,"<img src=""ug-map-slovakia.png"" />","UG::Europe UG::European_Union UG::Sovereign_State"
etAIJgAn)8,Slovenia,Slowenien,,,Ljubljana,Ljubljana,,,,,"<img src=""ug-flag-slovenia.svg"" />",,,"<img src=""ug-map-slovenia.png"" />","UG::Europe UG::European_Union UG::Mediterranean UG::Sovereign_State"
db{up5I>x|,Spain,Spanien,,,Madrid,Madrid,,,,,"<img src=""ug-flag-spain.png"" />",,,"<img src=""ug-map-spain.png"" />","UG::Europe UG::European_Union UG::Mediterranean UG::Sovereign_State"
db{up5I>x|,Spain,Spanien,,,Madrid,Madrid,,,,,"<img src=""ug-flag-spain.svg"" />",,,"<img src=""ug-map-spain.png"" />","UG::Europe UG::European_Union UG::Mediterranean UG::Sovereign_State"
q]au(Cz(^`,Sweden,Schweden,,,Stockholm,Stockholm,,,,,"<img src=""ug-flag-sweden.svg"" />",,,"<img src=""ug-map-sweden.png"" />","UG::Europe UG::European_Union UG::Sovereign_State"
j^y9}r#a`i,Switzerland,Schweiz,,,Bern,Bern,,,,,"<img src=""ug-flag-switzerland.svg"" />",,,"<img src=""ug-map-switzerland.png"" />","UG::Europe UG::Sovereign_State"
h(8o@usM_h,Turkey,Türkei,,,Ankara,Ankara,,,,,"<img src=""ug-flag-turkey.svg"" />",,,"<img src=""ug-map-turkey.png"" />","UG::Asia UG::Middle_East UG::Mediterranean UG::Sovereign_State"
Expand Down Expand Up @@ -149,7 +149,7 @@ stDJ0UMUpB,Turkmenistan,Turkmenistan,,,Ashgabat,Aschgabat,,,,,"<img src=""ug-fla
cd|8X=p-KA,Yemen,Jemen,,,Sana'a,Sanaa,,,,,"<img src=""ug-flag-yemen.svg"" />","Egypt (with emblem), Iraq (with text) and Syria (with two stars)","Ägypten (mit Emblem), Irak (mit Text) und Syrien (mit zwei Sternen)","<img src=""ug-map-yemen.png"" />","UG::Asia UG::Middle_East UG::Sovereign_State"
n(u/Le9LCH,Vietnam,Vietnam,,,Hanoi,Hanoi,,,,,"<img src=""ug-flag-vietnam.svg"" />",,,"<img src=""ug-map-vietnam.png"" />","UG::Asia UG::Southeast_Asia UG::Sovereign_State"
kN&[K]7`>c,Uzbekistan,Usbekistan,,,Tashkent,Taschkent,,,,,"<img src=""ug-flag-uzbekistan.svg"" />",,,"<img src=""ug-map-uzbekistan.png"" />","UG::Asia UG::Sovereign_State"
e%F*sk0uaT,Fiji,Fidschi,,,Suva,Suva,,,,,"<img src=""ug-flag-fiji.png"" />",,,"<img src=""ug-map-fiji.png"" />","UG::Oceania UG::Sovereign_State"
e%F*sk0uaT,Fiji,Fidschi,,,Suva,Suva,,,,,"<img src=""ug-flag-fiji.svg"" />",,,"<img src=""ug-map-fiji.png"" />","UG::Oceania UG::Sovereign_State"
jT[(te+7i%,"Papua New Guinea",Papua-Neuguinea,,,"Port Moresby","Port Moresby",,,,,"<img src=""ug-flag-papua_new_guinea.svg"" />",,,"<img src=""ug-map-papua_new_guinea.png"" />","UG::Oceania UG::Sovereign_State"
i~E.z}UxNF,Australia,Australien,,,Canberra,Canberra,,,,,"<img src=""ug-flag-australia.svg"" />","New Zealand (red stars, two fewer stars)","Neuseeland (rote Sterne, zwei Sterne weniger)","<img src=""ug-map-australia.png"" />","UG::Oceania UG::Sovereign_State"
pAOtFl&>U#,"Solomon Islands",Salomonen,,"Auch Salomoninseln.",Honiara,Honiara,,,,,"<img src=""ug-flag-solomon_islands.svg"" />",,,"<img src=""ug-map-solomon_islands.png"" />","UG::Oceania UG::Sovereign_State"
Expand Down Expand Up @@ -247,7 +247,7 @@ khTp#J9C!!,"Saint Helena","St. Helena","Part of Saint Helena, Ascension and Tris
r3?J{NB0J3,"Sint Eustatius","Sint Eustatius","Special municipality of the Netherlands.","Besondere Gemeinde der Niederlande.",Oranjestad,Oranjestad,,,"Special municipality","Besondere Gemeinde","<img src=""ug-flag-sint_eustatius.svg"" />",,,"<img src=""ug-map-sint_eustatius.png"" />","UG::America UG::Caribbean"
nE1cs;TFgo,"South Ossetia",Südossetien,"Independent state claimed by Georgia.","Unabhängiger Staat, von Georgien beansprucht.",Tskhinvali,Zchinwali,,,,,"<img src=""ug-flag-south_ossetia.svg"" />",,,"<img src=""ug-map-south_ossetia.png"" />","UG::Asia UG::Sovereign_State"
nN<IGBxnX.,Tokelau,Tokelau,"Dependent territory of New Zealand. Tokelau has no official capital; the meeting place of the Tokelau Council rotates annually.","Von Neuseeland abhängiges Gebiet. Tokelau hat keine offizielle Hauptstadt; der Treffpunkt des Tokelauer Rates wechselt jährlich.",,,,,,,"<img src=""ug-flag-tokelau.svg"" />",,,"<img src=""ug-map-tokelau.png"" />",UG::Oceania
lU*>%[&e|.,"American Samoa",Amerikanisch-Samoa,"Unincorporated territory of the United States.","Nichtinkorporiertes US-amerikanisches Außengebiet.","Pago Pago","Pago Pago",,,,,"<img src=""ug-flag-american_samoa.png"" />",,,"<img src=""ug-map-american_samoa.png"" />",UG::Oceania
lU*>%[&e|.,"American Samoa",Amerikanisch-Samoa,"Unincorporated territory of the United States.","Nichtinkorporiertes US-amerikanisches Außengebiet.","Pago Pago","Pago Pago",,,,,"<img src=""ug-flag-american_samoa.svg"" />",,,"<img src=""ug-map-american_samoa.png"" />",UG::Oceania
nK;HFcd-1P,"Northern Mariana Islands","Nördliche Marianen","Unincorporated territory of the United States.","Nichtinkorporiertes US-amerikanisches Außengebiet.",Saipan,Saipan,,,,,"<img src=""ug-flag-northern_mariana_islands.svg"" />",,,"<img src=""ug-map-northern_mariana_islands.png"" />",UG::Oceania
s7{M&?)+C&,Aruba,Aruba,"Constituent country of the Kingdom of the Netherlands.","Autonomes Land innerhalb des Königreichs der Niederlande.",Oranjestad,Oranjestad,,,"Constituent country",,"<img src=""ug-flag-aruba.svg"" />",,,"<img src=""ug-map-aruba.png"" />","UG::America UG::Caribbean"
q@4oQPt%lt,Abkhazia,Abchasien,"Independent state claimed by Georgia.","Unabhängiger Staat, der von Georgien beansprucht wird.",Sukhumi,Sochumi,,,,,"<img src=""ug-flag-abkhazia.svg"" />",,,"<img src=""ug-map-abkhazia.png"" />","UG::Europe UG::Sovereign_State"
Expand Down
Binary file removed src/media/ug-flag-american_samoa.png
Binary file not shown.
1 change: 1 addition & 0 deletions src/media/ug-flag-american_samoa.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/media/ug-flag-fiji.png
Binary file not shown.
1 change: 1 addition & 0 deletions src/media/ug-flag-fiji.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/media/ug-flag-spain.png
Binary file not shown.
1 change: 1 addition & 0 deletions src/media/ug-flag-spain.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 765760e

Please sign in to comment.