Add square flag pngs /w genflags.sh script

This uses the github.com:googlei18n/region-flags and imagemagick to generate 27x27 flag pngs. The flags have a 1px #e0e0e0 border and transparent padding such that each flag is of the same height (17px including the border).
This commit is contained in:
Luke Barnard
2017-05-18 11:25:42 +01:00
parent 338ab4d046
commit e879fb0eef
250 changed files with 54 additions and 0 deletions

BIN
res/flags/AD.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/AE.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 841 B

BIN
res/flags/AF.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/AG.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
res/flags/AI.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
res/flags/AL.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/AM.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 744 B

BIN
res/flags/AO.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
res/flags/AQ.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
res/flags/AR.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 955 B

BIN
res/flags/AS.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
res/flags/AT.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 701 B

BIN
res/flags/AU.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
res/flags/AW.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 938 B

BIN
res/flags/AX.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 900 B

BIN
res/flags/AZ.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 978 B

BIN
res/flags/BA.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/BB.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
res/flags/BD.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
res/flags/BE.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 689 B

BIN
res/flags/BF.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 954 B

BIN
res/flags/BG.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 737 B

BIN
res/flags/BH.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 842 B

BIN
res/flags/BI.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
res/flags/BJ.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 777 B

BIN
res/flags/BL.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 B

BIN
res/flags/BM.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
res/flags/BN.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
res/flags/BO.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

BIN
res/flags/BQ.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 726 B

BIN
res/flags/BR.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
res/flags/BS.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/BT.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
res/flags/BV.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 866 B

BIN
res/flags/BW.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 697 B

BIN
res/flags/BY.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 950 B

BIN
res/flags/BZ.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
res/flags/CA.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/CC.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
res/flags/CD.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
res/flags/CF.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/CG.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
res/flags/CH.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 800 B

BIN
res/flags/CI.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 B

BIN
res/flags/CK.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
res/flags/CL.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 964 B

BIN
res/flags/CM.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 908 B

BIN
res/flags/CN.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
res/flags/CO.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 726 B

BIN
res/flags/CR.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 B

BIN
res/flags/CU.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/CV.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/CW.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 970 B

BIN
res/flags/CX.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
res/flags/CY.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/CZ.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/DE.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 B

BIN
res/flags/DJ.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/DK.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 797 B

BIN
res/flags/DM.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/DO.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 946 B

BIN
res/flags/DZ.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/EC.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/EE.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 723 B

BIN
res/flags/EG.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 914 B

BIN
res/flags/EH.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/ER.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
res/flags/ES.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
res/flags/ET.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
res/flags/FI.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 841 B

BIN
res/flags/FJ.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
res/flags/FK.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
res/flags/FM.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/FO.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 834 B

BIN
res/flags/FR.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 B

BIN
res/flags/GA.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 753 B

BIN
res/flags/GB.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
res/flags/GD.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
res/flags/GE.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/GF.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
res/flags/GG.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1001 B

BIN
res/flags/GH.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1010 B

BIN
res/flags/GI.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/GL.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/GM.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 743 B

BIN
res/flags/GN.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

BIN
res/flags/GP.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
res/flags/GQ.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
res/flags/GR.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/GS.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
res/flags/GT.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 949 B

BIN
res/flags/GU.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/GW.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 972 B

BIN
res/flags/GY.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
res/flags/HK.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/HM.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
res/flags/HN.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 971 B

BIN
res/flags/HR.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/HT.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 951 B

BIN
res/flags/HU.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 728 B

BIN
res/flags/ID.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 685 B

BIN
res/flags/IE.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 694 B

BIN
res/flags/IL.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1006 B

BIN
res/flags/IM.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/IN.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 914 B

BIN
res/flags/IO.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
res/flags/IQ.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
res/flags/IR.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
res/flags/IS.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 851 B

BIN
res/flags/IT.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 694 B

BIN
res/flags/JE.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
res/flags/JM.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
res/flags/JO.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/JP.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/KE.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/KG.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
res/flags/KH.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/KI.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
res/flags/KM.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
res/flags/KN.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
res/flags/KP.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
res/flags/KR.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
res/flags/KW.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 985 B

BIN
res/flags/KY.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
res/flags/KZ.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
res/flags/LA.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
res/flags/LB.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/LC.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/LI.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 973 B

BIN
res/flags/LK.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
res/flags/LR.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 960 B

BIN
res/flags/LS.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 938 B

BIN
res/flags/LT.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 745 B

BIN
res/flags/LU.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 729 B

BIN
res/flags/LV.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 701 B

BIN
res/flags/LY.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 891 B

BIN
res/flags/MA.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 908 B

BIN
res/flags/MC.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 684 B

BIN
res/flags/MD.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/ME.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/MF.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 B

BIN
res/flags/MG.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 759 B

BIN
res/flags/MH.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
res/flags/MK.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
res/flags/ML.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

BIN
res/flags/MM.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
res/flags/MN.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/MO.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/MP.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
res/flags/MQ.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
res/flags/MR.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/MS.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
res/flags/MT.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 826 B

BIN
res/flags/MU.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 759 B

BIN
res/flags/MV.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/MW.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/MX.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 994 B

BIN
res/flags/MY.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/MZ.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/NA.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
res/flags/NC.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
res/flags/NE.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 970 B

BIN
res/flags/NF.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1019 B

BIN
res/flags/NG.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 682 B

BIN
res/flags/NI.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 961 B

BIN
res/flags/NL.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 726 B

BIN
res/flags/NO.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 866 B

BIN
res/flags/NP.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/NR.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 941 B

BIN
res/flags/NU.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/NZ.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
res/flags/OM.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 989 B

BIN
res/flags/PA.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 987 B

BIN
res/flags/PE.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 680 B

BIN
res/flags/PF.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/PG.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
res/flags/PH.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/PK.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
res/flags/PL.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 689 B

BIN
res/flags/PM.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
res/flags/PN.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
res/flags/PR.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
res/flags/PS.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
res/flags/PT.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/PW.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/PY.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 924 B

BIN
res/flags/QA.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 844 B

BIN
res/flags/RE.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 B

BIN
res/flags/RO.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

BIN
res/flags/RS.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/RU.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 B

BIN
res/flags/RW.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1003 B

BIN
res/flags/SA.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
res/flags/SB.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
res/flags/SC.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
res/flags/SD.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
res/flags/SE.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 780 B

BIN
res/flags/SG.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1021 B

BIN
res/flags/SH.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
res/flags/SI.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 933 B

BIN
res/flags/SJ.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 866 B

BIN
res/flags/SK.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/SL.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 726 B

BIN
res/flags/SM.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/SN.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 963 B

BIN
res/flags/SO.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
res/flags/SR.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1003 B

BIN
res/flags/SS.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/ST.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/SV.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 942 B

BIN
res/flags/SX.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/SY.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1002 B

BIN
res/flags/SZ.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
res/flags/TC.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
res/flags/TD.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

BIN
res/flags/TF.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 B

BIN
res/flags/TG.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/TH.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 731 B

BIN
res/flags/TJ.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 993 B

BIN
res/flags/TK.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/TL.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/TM.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
res/flags/TN.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/TO.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 919 B

BIN
res/flags/TR.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/TT.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
res/flags/TV.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
res/flags/TW.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
res/flags/TZ.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
res/flags/UA.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 694 B

BIN
res/flags/UG.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
res/flags/US.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/UY.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/UZ.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 942 B

BIN
res/flags/VA.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 977 B

BIN
res/flags/VC.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
res/flags/VE.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
res/flags/VG.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
res/flags/VI.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
res/flags/VN.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/flags/VU.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
res/flags/WF.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/flags/WS.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1004 B

BIN
res/flags/YE.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 715 B

BIN
res/flags/YT.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
res/flags/ZA.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
res/flags/ZM.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 991 B

BIN
res/flags/ZW.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

53
res/genflags.sh Executable file
View File

@@ -0,0 +1,53 @@
# genflags.sh - Generates pngs for use with CountryDropdown.js
#
# Dependencies:
# - imagemagick --with-rsvg (because default imagemagick SVG
# renderer does not produce accurate results)
#
# This will clone the googlei18n flag repo before converting
# all phonenumber.js-supported country flags (as SVGs) into
# PNGs that can be used by CountryDropdown.js.
# Allow CTRL+C to terminate the script
trap "echo Exited!; exit;" SIGINT SIGTERM
# git clone the google repo to get flag SVGs
git clone git@github.com:googlei18n/region-flags
for f in region-flags/svg/*.svg; do
# Skip state flags
if [[ $f =~ [A-Z]{2}-[A-Z]{2,3}.svg ]] ; then
echo "Skipping state flag "$f
continue
fi
# Skip countries not included in phonenumber.js
if [[ $f =~ (AC|CP|DG|EA|EU|IC|TA|UM|UN|XK).svg ]] ; then
echo "Skipping non-phonenumber supported flag "$f
continue
fi
# Run imagemagick convert
# -background none : transparent background
# -thumbnail 25x15 : resize the flag to have a height of 15.
# By default, aspect ratio is respected so the width will
# be correct and not necessarily 25px.
# -gravity Center : keep the image central when adding an -extent
# -border 1 : add a 1px border around the flag
# -bordercolor : set the border colour
# -extent 27x27 : surround the image with padding so that it
# has the dimensions 27x27.
convert $f -background none -thumbnail 25x15 \
-gravity Center -border 1 -bordercolor \#e0e0e0 \
-extent 27x27 $f.png
# $f.png will be region-flags/svg/XX.svg.png at this point
# Extract filename from path $f
newname=${f##*/}
# Replace .svg with .png
newname=${newname%.svg}.png
# Move the file to flags directory
mv $f.png flags/$newname
echo "Generated flags/"$newname
done