[
  {
    "path": ".gitignore",
    "content": "*.DS_Store"
  },
  {
    "path": "README.md",
    "content": "# Fake Logos\n\nA selection of fake but convincing company logos for real-looking test data.\n\n## Usage\n\nDownload or link to the logos from the table below \n\nThe logos are accessible by:\n\n* {number}.png for tools wanting to pull in a random logo\n* Company name for direct access\n\n## The Logos\n\n\n\nColor Logo | Grayscale Logo | Sizes\n| ------ | ------ | -------\n<img src=\"http://pigment.github.io/fake-logos/logos/vector/color/greens-food-suppliers.svg\" alt=\"greens-food-suppliers\" width=\"160\" /> | <img src=\"http://pigment.github.io/fake-logos/logos/vector/grayscale/greens-food-suppliers.svg\" alt=\"greens-food-suppliers\" width=\"160\" /> | <a href=\"http://pigment.github.io/fake-logos/logos/vector/color/greens-food-suppliers.svg\">svg</a>, <a href=\"http://pigment.github.io/fake-logos/logos/small/color/greens-food-suppliers.png\">small</a>, <a href=\"http://pigment.github.io/fake-logos/logos/medium/color/greens-food-suppliers.png\">medium</a>, <a href=\"http://pigment.github.io/fake-logos/logos/large/color/greens-food-suppliers.png\">large</a>\n\n\nColor Logo | Grayscale Logo | Sizes\n| ------ | ------ | -------\n<img src=\"http://pigment.github.io/fake-logos/logos/vector/color/auto-speed.svg\" alt=\"auto-speed\" width=\"160\" /> | <img src=\"http://pigment.github.io/fake-logos/logos/vector/grayscale/auto-speed.svg\" alt=\"auto-speed\" width=\"160\" /> | <a href=\"http://pigment.github.io/fake-logos/logos/vector/color/auto-speed.svg\">svg</a>, <a href=\"http://pigment.github.io/fake-logos/logos/small/color/auto-speed.png\">small</a>, <a href=\"http://pigment.github.io/fake-logos/logos/medium/color/auto-speed.png\">medium</a>, <a href=\"http://pigment.github.io/fake-logos/logos/large/color/auto-speed.png\">large</a>\n\n\nColor Logo | Grayscale Logo | Sizes\n| ------ | ------ | -------\n<img src=\"http://pigment.github.io/fake-logos/logos/vector/color/crofts-accountants.svg\" alt=\"crofts-accountants\" width=\"160\" /> | <img src=\"http://pigment.github.io/fake-logos/logos/vector/grayscale/crofts-accountants.svg\" alt=\"crofts-accountants\" width=\"160\" /> | <a href=\"http://pigment.github.io/fake-logos/logos/vector/color/crofts-accountants.svg\">svg</a>, <a href=\"http://pigment.github.io/fake-logos/logos/small/color/crofts-accountants.png\">small</a>, <a href=\"http://pigment.github.io/fake-logos/logos/medium/color/crofts-accountants.png\">medium</a>, <a href=\"http://pigment.github.io/fake-logos/logos/large/color/crofts-accountants.png\">large</a>\n\n\nColor Logo | Grayscale Logo | Sizes\n| ------ | ------ | -------\n<img src=\"http://pigment.github.io/fake-logos/logos/vector/color/cheshire-county-hygiene-services.svg\" alt=\"cheshire-county-hygiene-services\" width=\"160\" /> | <img src=\"http://pigment.github.io/fake-logos/logos/vector/grayscale/cheshire-county-hygiene-services.svg\" alt=\"cheshire-county-hygiene-services\" width=\"160\" /> | <a href=\"http://pigment.github.io/fake-logos/logos/vector/color/cheshire-county-hygiene-services.svg\">svg</a>, <a href=\"http://pigment.github.io/fake-logos/logos/small/color/cheshire-county-hygiene-services.png\">small</a>, <a href=\"http://pigment.github.io/fake-logos/logos/medium/color/cheshire-county-hygiene-services.png\">medium</a>, <a href=\"http://pigment.github.io/fake-logos/logos/large/color/cheshire-county-hygiene-services.png\">large</a>\n\n\nColor Logo | Grayscale Logo | Sizes\n| ------ | ------ | -------\n<img src=\"http://pigment.github.io/fake-logos/logos/vector/color/fast-banana.svg\" alt=\"fast-banana\" width=\"160\" /> | <img src=\"http://pigment.github.io/fake-logos/logos/vector/grayscale/fast-banana.svg\" alt=\"fast-banana\" width=\"160\" /> | <a href=\"http://pigment.github.io/fake-logos/logos/vector/color/fast-banana.svg\">svg</a>, <a href=\"http://pigment.github.io/fake-logos/logos/small/color/fast-banana.png\">small</a>, <a href=\"http://pigment.github.io/fake-logos/logos/medium/color/fast-banana.png\">medium</a>, <a href=\"http://pigment.github.io/fake-logos/logos/large/color/fast-banana.png\">large</a>\n\n\nColor Logo | Grayscale Logo | Sizes\n| ------ | ------ | -------\n<img src=\"http://pigment.github.io/fake-logos/logos/vector/color/yoga-baby.svg\" alt=\"yoga-baby\" width=\"160\" /> | <img src=\"http://pigment.github.io/fake-logos/logos/vector/grayscale/yoga-baby.svg\" alt=\"yoga-baby\" width=\"160\" /> | <a href=\"http://pigment.github.io/fake-logos/logos/vector/color/yoga-baby.svg\">svg</a>, <a href=\"http://pigment.github.io/fake-logos/logos/small/color/yoga-baby.png\">small</a>, <a href=\"http://pigment.github.io/fake-logos/logos/medium/color/yoga-baby.png\">medium</a>, <a href=\"http://pigment.github.io/fake-logos/logos/large/color/yoga-baby.png\">large</a>\n\n\nColor Logo | Grayscale Logo | Sizes\n| ------ | ------ | -------\n<img src=\"http://pigment.github.io/fake-logos/logos/vector/color/james-and-sons.svg\" alt=\"james-and-sons\" width=\"160\" /> | <img src=\"http://pigment.github.io/fake-logos/logos/vector/grayscale/james-and-sons.svg\" alt=\"james-and-sons\" width=\"160\" /> | <a href=\"http://pigment.github.io/fake-logos/logos/vector/color/james-and-sons.svg\">svg</a>, <a href=\"http://pigment.github.io/fake-logos/logos/small/color/james-and-sons.png\">small</a>, <a href=\"http://pigment.github.io/fake-logos/logos/medium/color/james-and-sons.png\">medium</a>, <a href=\"http://pigment.github.io/fake-logos/logos/large/color/james-and-sons.png\">large</a>\n\n\nColor Logo | Grayscale Logo | Sizes\n| ------ | ------ | -------\n<img src=\"http://pigment.github.io/fake-logos/logos/vector/color/the-dance-studio.svg\" alt=\"the-dance-studio\" width=\"160\" /> | <img src=\"http://pigment.github.io/fake-logos/logos/vector/grayscale/the-dance-studio.svg\" alt=\"the-dance-studio\" width=\"160\" /> | <a href=\"http://pigment.github.io/fake-logos/logos/vector/color/the-dance-studio.svg\">svg</a>, <a href=\"http://pigment.github.io/fake-logos/logos/small/color/the-dance-studio.png\">small</a>, <a href=\"http://pigment.github.io/fake-logos/logos/medium/color/the-dance-studio.png\">medium</a>, <a href=\"http://pigment.github.io/fake-logos/logos/large/color/the-dance-studio.png\">large</a>\n\n\nColor Logo | Grayscale Logo | Sizes\n| ------ | ------ | -------\n<img src=\"http://pigment.github.io/fake-logos/logos/vector/color/space-cube.svg\" alt=\"space-cube\" width=\"160\" /> | <img src=\"http://pigment.github.io/fake-logos/logos/vector/grayscale/space-cube.svg\" alt=\"space-cube\" width=\"160\" /> | <a href=\"http://pigment.github.io/fake-logos/logos/vector/color/space-cube.svg\">svg</a>, <a href=\"http://pigment.github.io/fake-logos/logos/small/color/space-cube.png\">small</a>, <a href=\"http://pigment.github.io/fake-logos/logos/medium/color/space-cube.png\">medium</a>, <a href=\"http://pigment.github.io/fake-logos/logos/large/color/space-cube.png\">large</a>\n\n\nColor Logo | Grayscale Logo | Sizes\n| ------ | ------ | -------\n<img src=\"http://pigment.github.io/fake-logos/logos/vector/color/baby-swim.svg\" alt=\"baby-swim\" width=\"160\" /> | <img src=\"http://pigment.github.io/fake-logos/logos/vector/grayscale/baby-swim.svg\" alt=\"baby-swim\" width=\"160\" /> | <a href=\"http://pigment.github.io/fake-logos/logos/vector/color/baby-swim.svg\">svg</a>, <a href=\"http://pigment.github.io/fake-logos/logos/small/color/baby-swim.png\">small</a>, <a href=\"http://pigment.github.io/fake-logos/logos/medium/color/baby-swim.png\">medium</a>, <a href=\"http://pigment.github.io/fake-logos/logos/large/color/baby-swim.png\">large</a>\n\n\nColor Logo | Grayscale Logo | Sizes\n| ------ | ------ | -------\n<img src=\"http://pigment.github.io/fake-logos/logos/vector/color/beauty-box.svg\" alt=\"beauty-box\" width=\"160\" /> | <img src=\"http://pigment.github.io/fake-logos/logos/vector/grayscale/beauty-box.svg\" alt=\"beauty-box\" width=\"160\" /> | <a href=\"http://pigment.github.io/fake-logos/logos/vector/color/beauty-box.svg\">svg</a>, <a href=\"http://pigment.github.io/fake-logos/logos/small/color/beauty-box.png\">small</a>, <a href=\"http://pigment.github.io/fake-logos/logos/medium/color/beauty-box.png\">medium</a>, <a href=\"http://pigment.github.io/fake-logos/logos/large/color/beauty-box.png\">large</a>\n\n\nColor Logo | Grayscale Logo | Sizes\n| ------ | ------ | -------\n<img src=\"http://pigment.github.io/fake-logos/logos/vector/color/the-web-works.svg\" alt=\"the-web-works\" width=\"160\" /> | <img src=\"http://pigment.github.io/fake-logos/logos/vector/grayscale/the-web-works.svg\" alt=\"the-web-works\" width=\"160\" /> | <a href=\"http://pigment.github.io/fake-logos/logos/vector/color/the-web-works.svg\">svg</a>, <a href=\"http://pigment.github.io/fake-logos/logos/small/color/the-web-works.png\">small</a>, <a href=\"http://pigment.github.io/fake-logos/logos/medium/color/the-web-works.png\">medium</a>, <a href=\"http://pigment.github.io/fake-logos/logos/large/color/the-web-works.png\">large</a>\n\n\nColor Logo | Grayscale Logo | Sizes\n| ------ | ------ | -------\n<img src=\"http://pigment.github.io/fake-logos/logos/vector/color/petes-blinds.svg\" alt=\"petes-blinds\" width=\"160\" /> | <img src=\"http://pigment.github.io/fake-logos/logos/vector/grayscale/petes-blinds.svg\" alt=\"petes-blinds\" width=\"160\" /> | <a href=\"http://pigment.github.io/fake-logos/logos/vector/color/petes-blinds.svg\">svg</a>, <a href=\"http://pigment.github.io/fake-logos/logos/small/color/petes-blinds.png\">small</a>, <a href=\"http://pigment.github.io/fake-logos/logos/medium/color/petes-blinds.png\">medium</a>, <a href=\"http://pigment.github.io/fake-logos/logos/large/color/petes-blinds.png\">large</a>\n\n## License\n\nThe logos and source artwork are released under [Creative Commons Attribution-Share Alike](http://creativecommons.org/licenses/by-sa/4.0/)\n\n[![Creative Commons Attribution-Share Alike](http://i.creativecommons.org/l/by-sa/3.0/88x31.png)](http://creativecommons.org/licenses/by-sa/4.0/)\n\nThe build tools are released under the [MIT License](http://www.opensource.org/licenses/MIT)\n"
  },
  {
    "path": "Rakefile",
    "content": "task :default do\n  sizes = [\n    ['small', '320'],\n    ['medium', '900'],\n    ['large', '1600']\n  ]\n\n  types = ['color', 'grayscale']\n  logos_for_readme = Hash.new([])\n\n  types.each do |type|\n    files = Dir[\"./src/logos/#{type}/*.svg\"].map {|path| File.new(path) }\n    files.sort! {|a, b| a.ctime <=> b.ctime }\n\n    files.each_with_index do |f, i|\n      name = File.basename(f.path, '.svg')\n      vector_logo_path = f.path.gsub(\"src/logos/\", \"logos/vector/\")\n      `mkdir -p #{File.dirname(vector_logo_path)}`\n      `cp #{f.path} #{vector_logo_path}`\n      \n      logos_for_readme[name] += [vector_logo_path]\n\n      sizes.each do |size, width|\n        new_dir = File.dirname(f.path.gsub('src/logos/', \"logos/#{size}/\"))\n        new_path = File.join(new_dir, File.basename(f.path, '.svg'))\n        numeric_logo_path = File.dirname(new_path) + \"/#{i + 1}.png\"\n\n        logos_for_readme[name] += [new_path + '.png']\n\n        `mkdir -p #{new_dir}`\n        `svg2png -w #{width} #{f.path} #{new_path}.png`\n        `cp #{new_path}.png #{numeric_logo_path}`\n      end\n    end\n  end\n\n  logos_for_readme = logos_for_readme.map do |name, files|\n    \"\\n\\nColor Logo | Grayscale Logo | Sizes\\n| ------ | ------ | -------\\n\" + \n    %{<img src=\"http://pigment.github.io/fake-logos/logos/vector/color/#{name}.svg\" alt=\"#{name}\" width=\"160\" /> | } +\n    %{<img src=\"http://pigment.github.io/fake-logos/logos/vector/grayscale/#{name}.svg\" alt=\"#{name}\" width=\"160\" /> | } +\n    %{<a href=\"http://pigment.github.io/fake-logos/logos/vector/color/#{name}.svg\">svg</a>, } +\n    sizes.map {|size, geom|\n      %{<a href=\"http://pigment.github.io/fake-logos/logos/#{size}/color/#{name}.png\">#{size}</a>}\n    }.join(\", \")\n  end.join(\"\\n\")\n\n  readme = File.read('README.md')\n  readme = readme.gsub(/The Logos.*##/m, \"The Logos\\n\\n\" + logos_for_readme + \"\\n\\n##\")\n  File.open('README.md', 'w') { |file| file.write(readme) }\nend\n\n\ntask :clean do\n  `rm ./logos/*/**/*.png`\n  `rm ./logos/*/**/*.svg`\nend"
  }
]