{"id":13579724,"url":"https://github.com/googlefonts/picosvg","last_synced_at":"2025-04-04T19:05:22.244Z","repository":{"id":37463892,"uuid":"253082082","full_name":"googlefonts/picosvg","owner":"googlefonts","description":"Helps simplify SVG files. Intended for use as part of a font build.","archived":false,"fork":false,"pushed_at":"2025-01-29T15:11:18.000Z","size":904,"stargazers_count":161,"open_issues_count":26,"forks_count":12,"subscribers_count":21,"default_branch":"main","last_synced_at":"2025-03-28T18:07:17.184Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/googlefonts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-04T19:25:03.000Z","updated_at":"2025-03-17T09:02:36.000Z","dependencies_parsed_at":"2024-12-15T19:08:24.848Z","dependency_job_id":"93c6212b-861b-4a96-ae1a-64fc37a8ea1f","html_url":"https://github.com/googlefonts/picosvg","commit_stats":null,"previous_names":[],"tags_count":63,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlefonts%2Fpicosvg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlefonts%2Fpicosvg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlefonts%2Fpicosvg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlefonts%2Fpicosvg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/googlefonts","download_url":"https://codeload.github.com/googlefonts/picosvg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234921,"owners_count":20905854,"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-08-01T15:01:42.354Z","updated_at":"2025-04-04T19:05:22.225Z","avatar_url":"https://github.com/googlefonts.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"[![CI Build Status](https://github.com/googlefonts/picosvg/workflows/Continuous%20Test%20+%20Deploy/badge.svg)](https://github.com/googlefonts/picosvg/actions/workflows/ci.yml?query=workflow%3ATest)\n[![PyPI](https://img.shields.io/pypi/v/picosvg.svg)](https://pypi.org/project/picosvg/)\n[![Dependencies](https://badgen.net/github/dependabot/googlefonts/picosvg)](https://github.com/googlefonts/picosvg/network/updates)\n\n# picosvg\n\nTool to simplify SVGs. Converts an input svg into a \"pico\" svg:\n\n*   Exactly 1 `\u003cdefs\u003e` element, first child of root\n*   Only gradients defined under `\u003cdefs\u003e`\n*   After the initial `\u003cdefs\u003e`, only `\u003cg\u003e` and `\u003cpath\u003e`\n    * `\u003cg\u003e` is eliminated when possible, but may be retained for opacity\n*   Only absolute coordinates\n*   Only commands that specify full coordinates, no shorthand (H, S, etc)\n\nClip paths and strokes are rendered into equivalent paths using [Skia](https://skia.org/) via [skia-pathops](https://github.com/fonttools/skia-pathops), `\u003cuse\u003e` references are materialized, etc.\n\nSome SVG features are not supported, of particular note:\n\n*   `\u003cfilter\u003e`\n*   `\u003cmask\u003e`\n\nUsage:\n\n```shell\npip install -e .\npicosvg mysvg.svg\n```\n\nRequires Python 3.8 or greater.\n\n## Test\n\nInstall the dev dependencies specified in [`extras_require`](https://github.com/googlefonts/picosvg/blob/main/setup.py#L36-L40).\n\n```shell\npip install -e .[dev]\npytest\n```\n\nIf you use zsh, it will prompt an error(`zsh: no matches found: .[dev]`). Please use the following command:\n\n```shell\npip install -e '.[dev]'\n```\n\nYou can also use [pytest](https://docs.pytest.org/) to test the specified files individually.\n\n```shell\npytest tests/svg_test.py\n```\n\nIf you need to test a certain function (for example: test_topicosvg), please execute:\n\n```shell\npytest tests/svg_test.py::test_topicosvg\n```\n\nIf you need to display detailed diff information, please execute:\n```shell\npytest tests/svg_test.py::test_topicosvg --vv\n```\n## Releasing\n\nSee https://googlefonts.github.io/python#make-a-release.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgooglefonts%2Fpicosvg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgooglefonts%2Fpicosvg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgooglefonts%2Fpicosvg/lists"}