[
  {
    "path": "LICENSE",
    "content": "MIT License\n\nCopyright (c) 2018 Howard Yeh (https://github.com/hayeah)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "Makefile",
    "content": "svgin=svg-cards\nsvgout=svg-out\npngout=png-out\n\nsvgin_files=$(shell ls svg-cards/*.svg)\nsvgout_files=$(patsubst $(svgin)/%,$(svgout)/%,$(svgin_files))\npngout_files=$(patsubst $(svgout)/%.svg,$(pngout)/%.png,$(svgout_files))\n\n$(svgout):\n\tmkdir -p $(svgout)\n\n$(pngout):\n\tmkdir -p $(pngout)\n\nsvg: $(svgout) $(svgout_files)\n\npng: svg $(pngout) $(pngout_files)\n\n$(svgout)/%.svg: $(svgin)/%.svg\n\txmlstarlet edit -d '//_:path[@id=\"path5\"]' $< > $@\n\n$(pngout)/%.png: $(svgout)/%.svg\n\tnode svg2png.js $< $@\n\nclear:\n\trm -r $(svgout) $(pngout)\n\n.PHONY: clear svg png"
  },
  {
    "path": "README.md",
    "content": "# Playing Cards iOS Assets\n\nCourtesy of https://code.google.com/p/vector-playing-cards/ (public domain)\n\nWith some additional processing to remove borders of cards.\n\nBuild the png assets with four parallel processes:\n\n```\nmake -j 4 png\n```\n\n# Tools\n\n[xmlstartlet](http://xmlstar.sourceforge.net/) to remove the border path from svg.\n\n[svg2png](https://github.com/domenic/svg2png) to convert svg to png (based on phantomjs)\n"
  },
  {
    "path": "svg2png.js",
    "content": "svg2png = require(\"svg2png\");\n\nsource = process.argv[2];\ndest = process.argv[3];\n\nsvg2png(source, dest, function (err) {\n  if(err) {\n    consle.error(\"svg conversion fail: \"+source);\n  }\n});"
  }
]