{"id":37071132,"url":"https://github.com/kyamagu/psd2svg","last_synced_at":"2026-01-14T08:18:31.712Z","repository":{"id":57455272,"uuid":"97103093","full_name":"kyamagu/psd2svg","owner":"kyamagu","description":"PSD to SVG converter.","archived":false,"fork":false,"pushed_at":"2025-12-19T13:55:27.000Z","size":9544,"stargazers_count":56,"open_issues_count":10,"forks_count":17,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-12-20T22:21:03.146Z","etag":null,"topics":["photoshop","psd","python","svg"],"latest_commit_sha":null,"homepage":"https://psd2svg.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kyamagu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-07-13T09:08:18.000Z","updated_at":"2025-12-19T13:55:29.000Z","dependencies_parsed_at":"2025-09-09T11:23:41.427Z","dependency_job_id":"e494ce75-18cb-4e35-9267-02c6e1f9f52b","html_url":"https://github.com/kyamagu/psd2svg","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/kyamagu/psd2svg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyamagu%2Fpsd2svg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyamagu%2Fpsd2svg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyamagu%2Fpsd2svg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyamagu%2Fpsd2svg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kyamagu","download_url":"https://codeload.github.com/kyamagu/psd2svg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyamagu%2Fpsd2svg/sbom","scorecard":{"id":574995,"data":{"date":"2025-08-11","repo":{"name":"github.com/kyamagu/psd2svg","commit":"1517d06fbd8d2e056562f35b2d57f91382ba34e5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}}]},"last_synced_at":"2025-08-20T17:26:08.826Z","repository_id":57455272,"created_at":"2025-08-20T17:26:08.826Z","updated_at":"2025-08-20T17:26:08.826Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:16:59.381Z","status":"ssl_error","status_checked_at":"2026-01-14T08:13:45.490Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["photoshop","psd","python","svg"],"created_at":"2026-01-14T08:18:31.160Z","updated_at":"2026-01-14T08:18:31.708Z","avatar_url":"https://github.com/kyamagu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PSD2SVG\n\nPSD to SVG converter based on [psd-tools](https://github.com/psd-tools/psd-tools).\n\n[![PyPI Version](https://img.shields.io/pypi/v/psd2svg.svg)](https://pypi.python.org/pypi/psd2svg)\n[![Documentation Status](https://readthedocs.org/projects/psd2svg/badge/?version=latest)](https://psd2svg.readthedocs.io/en/latest/?badge=latest)\n\n## Features\n\n- Convert PSD files to clean, editable SVG\n- Preserve layers and artboards with smart group optimization\n- Convert text layers to native SVG text elements (experimental)\n  - Arc warp support with SVG textPath\n  - Smart font matching with Unicode codepoint-based selection\n- Support for most Photoshop blending modes (with approximations for unsupported modes)\n- Adjustment layers support (experimental)\n- Optional font subsetting and embedding for web optimization (typically 90-95% size reduction)\n- Built-in resource limits for security (file size, timeout, layer depth, dimensions)\n- Command-line tool and Python API\n\n## Installation\n\n```bash\npip install psd2svg\n```\n\n### Optional Features\n\n```bash\n# Browser-based rasterization (better SVG 2.0 support)\npip install psd2svg[browser]\nplaywright install chromium\n```\n\n## Quick Start\n\n### Command Line\n\n```bash\n# Basic conversion\npsd2svg input.psd output.svg\n\n# With external images\npsd2svg input.psd output.svg --image-prefix images/img\n```\n\n### Python API\n\n```python\nfrom psd2svg import convert\n\n# Simple conversion with embedded images\nconvert('input.psd', 'output.svg')\n\n# With external images\nconvert('input.psd', 'output.svg', image_prefix='images/img')\n```\n\n### Advanced Usage\n\n```python\nfrom psd_tools import PSDImage\nfrom psd2svg import SVGDocument\n\n# Load PSD and create SVG document\npsdimage = PSDImage.open(\"input.psd\")\ndocument = SVGDocument.from_psd(psdimage)\n\n# Save with options\ndocument.save(\"output.svg\", embed_images=True)\n\n# Embed and subset fonts for web\ndocument.save(\"output.svg\", embed_fonts=True, font_format=\"woff2\")\n\n# Rasterize to PNG\nimage = document.rasterize()\nimage.save('output.png')\n```\n\n## Known Limitations\n\n- **Text rendering**: Requires matching system fonts; rendering may differ from Photoshop if fonts are unavailable or substituted\n- **Text wrapping**: Basic support via `--text-wrapping-mode foreignobject` CLI option or `text_wrapping_mode=TextWrappingMode.FOREIGN_OBJECT` in Python API (uses `\u003cforeignObject\u003e`). Note: not supported by ResvgRasterizer, only works in browsers\n- **Blending modes**: Some advanced modes approximated due to CSS spec limitations (Dissolve, Linear Burn/Dodge, Darker/Lighter Color, Vivid/Linear/Pin Light, Hard Mix, Subtract, Divide)\n- **Gradients**: Advanced types not supported (Angle, Reflected, Diamond)\n- **Filter effects**: Bevels, embossing, and satin effects not supported; other effects are approximations\n- **Adjustment layers**: Some not yet implemented (Black \u0026 White, Channel Mixer, Color Lookup, Gradient Map, Photo Filter, Selective Color, Vibrance)\n- **Smart objects**: Smart object filters not implemented\n- **Thread safety**: APIs are not thread-safe\n\nSee the [full documentation](https://psd2svg.readthedocs.io/en/latest/limitations.html) for complete details and workarounds.\n\n## Documentation\n\nFull documentation is available at **[psd2svg.readthedocs.io](https://psd2svg.readthedocs.io/)**\n\n## Platform Support\n\nAll platforms (Linux, macOS, Windows) are fully supported for text conversion and font embedding. Text layer conversion uses a hybrid approach with built-in font mappings (~4,950 fonts) plus platform-specific font resolution.\n\nFor detailed font resolution architecture, platform-specific implementation details, and custom font mapping, see the [Font Handling documentation](https://psd2svg.readthedocs.io/en/latest/fonts.html) and [Technical Notes](https://psd2svg.readthedocs.io/en/latest/technical-notes.html#font-resolution-architecture).\n\n## Security\n\npsd2svg includes built-in security features for processing untrusted PSD files:\n\n- Resource limits (file size, timeout, layer depth, dimensions)\n- Path traversal protection\n- Font file validation\n\nFor comprehensive security guidance, sandboxing strategies, and production deployment best practices, see the [Security Documentation](https://psd2svg.readthedocs.io/en/latest/security.html). To report vulnerabilities, see [SECURITY.md](SECURITY.md).\n\n## Development\n\n```bash\n# Install dependencies\nuv sync\n\n# Optional: Install browser support for PlaywrightRasterizer\nuv sync --extra browser\nuv run playwright install chromium\n\n# Run tests\nuv run pytest\n\n# Run type checking and linting\nuv run mypy src/ tests/\nuv run ruff check src/ tests/\nuv run ruff format src/ tests/\n```\n\nSee [CLAUDE.md](CLAUDE.md) for detailed development instructions.\n\n## License\n\nMIT License - see LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyamagu%2Fpsd2svg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkyamagu%2Fpsd2svg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyamagu%2Fpsd2svg/lists"}