{"id":18495133,"url":"https://github.com/notpeter/vector-playing-cards","last_synced_at":"2025-04-08T22:31:48.041Z","repository":{"id":14414637,"uuid":"17125551","full_name":"notpeter/Vector-Playing-Cards","owner":"notpeter","description":"Deck of SVG vector playing card images and Python script to create custom sized PNGs ","archived":false,"fork":false,"pushed_at":"2014-02-24T20:46:02.000Z","size":3677,"stargazers_count":91,"open_issues_count":0,"forks_count":34,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-23T19:11:17.264Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/notpeter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-24T04:47:19.000Z","updated_at":"2025-02-01T03:08:25.000Z","dependencies_parsed_at":"2022-08-27T09:40:19.615Z","dependency_job_id":null,"html_url":"https://github.com/notpeter/Vector-Playing-Cards","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notpeter%2FVector-Playing-Cards","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notpeter%2FVector-Playing-Cards/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notpeter%2FVector-Playing-Cards/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notpeter%2FVector-Playing-Cards/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/notpeter","download_url":"https://codeload.github.com/notpeter/Vector-Playing-Cards/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247940470,"owners_count":21021980,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T13:23:34.872Z","updated_at":"2025-04-08T22:31:44.312Z","avatar_url":"https://github.com/notpeter.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vector Playing Cards \n\nThis is a simple collection of SVG images defining a deck of playing cards (based on [vector-playing-cards][4]) and a script (svg2png.py) which will convert a folder of svg files into arbitrarily sized png files.\n\n## Usage:\n    svg2png.py [-h] -i INPUTDIR -o OUTPUTDIR [-q] [-x] [-n] -w WIDTH\n\n    Generate fixed width PNGs from SVGs    \n    optional arguments:\n      -h, --help            show this help message and exit\n      -i INPUTDIR           Input directory of SVGs\n      -o OUTPUTDIR          Output directory of PNGs\n      -v, --verbose         Verbose output\n      -x, --nocrush         Don't optimize resulting PNGs\n      -n, --dry-run         Show commands without running them\n      -w WIDTH              PNG output width\n\n## Example use:\n \n  * Simple: Convert SVGs to 300px wide uncompressed PNGs:\n    \n    `python svg2png.py -v -x -i cards-svg -o cards-png-300px -w 300`\n\n  * Normal: Create SVGs to 320px wide optimized PNGs suppressing all status output\n\n  \t`python svg2png.py -i cards-svg -o cards-png-320px -w 320`\n\n\n## Prerequisites:\nTo generate custom PNG images, you'll want the following tools:\n\n * MacOSX:\n   * Homebrew: `ruby -e \"$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)\"`\n   * svg2png: `brew install svg2png`\n   * optipng: `brew install optipng`\n   * advdef: `brew install advancecomp`\n   * montage: `brew install imagemagick`\n\n * Python 2.7 (generate-png.py uses argparse which is Python 2.7 only)\n\n## Notes:\nNon optimized PNGs are approximately a third larger.\n\n##License\n\nThese images, scripts and subsequent transformational output (e.g. custom sized PNGs) are released into the public domain or optionally licensed under the [WTFPL][2] in juristictions where the public domain is not a recognized legal concept.  Either way, do as you see fit: relicense, embed in commercial, non-commercial or open-source software, etc.\n\nThe original source images were released by [Byron Knoll][3] into the public domain on Google Code as [vector-playing-cards][4] . Perhaps send him \n\n\n [1]: https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager\n [2]: http://en.wikipedia.org/wiki/WTFPL\n [3]: http://www.byronknoll.com/\n [4]: https://code.google.com/p/vector-playing-cards/\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/notpeter/vector-playing-cards/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotpeter%2Fvector-playing-cards","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotpeter%2Fvector-playing-cards","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotpeter%2Fvector-playing-cards/lists"}