{"id":19521855,"url":"https://github.com/inochi2d/psd-d","last_synced_at":"2026-02-28T23:03:59.271Z","repository":{"id":47060516,"uuid":"375414107","full_name":"Inochi2D/psd-d","owner":"Inochi2D","description":"Experimental PSD loader made for Inochi Creator","archived":false,"fork":false,"pushed_at":"2023-07-23T21:35:31.000Z","size":105,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-27T04:39:06.894Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"D","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Inochi2D.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2021-06-09T16:03:23.000Z","updated_at":"2025-08-25T16:59:10.000Z","dependencies_parsed_at":"2024-11-11T00:35:33.232Z","dependency_job_id":"8384db1c-fc04-4fbb-ac24-124944664303","html_url":"https://github.com/Inochi2D/psd-d","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/Inochi2D/psd-d","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inochi2D%2Fpsd-d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inochi2D%2Fpsd-d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inochi2D%2Fpsd-d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inochi2D%2Fpsd-d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Inochi2D","download_url":"https://codeload.github.com/Inochi2D/psd-d/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inochi2D%2Fpsd-d/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29954583,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T22:53:01.873Z","status":"ssl_error","status_checked_at":"2026-02-28T22:52:50.699Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-11-11T00:35:26.824Z","updated_at":"2026-02-28T23:03:59.233Z","avatar_url":"https://github.com/Inochi2D.png","language":"D","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PSD-D\npsd-d is a lose experimental port of psd_sdk to D to support basic extraction of layer info and layer data from photoshop files.\nSome features are not supported (yet), but we'll add them over time.\n\nOnly the PSD format is supported, there's currently no support for PSB.\n\n# Parsing a document\nTo parse a PSD document, use `parseDocument` in `psd`.\n```d\nPSD document = parseDocument(\"myFile.psd\");\n```\n\n# Extracting layer data from layer\nTo extract layer data (textures) from a layer use `Layer.extractLayerImage()`\n```d\nPSD doc = parseDocument(\"myfile.psd\");\nforeach(layer; doc.layers) {\n    \n    // Skip non-image layers\n    if (layer.type != LayerType.Any) continue;\n\n    // Extract the layer image data.\n    // The output RGBA output is stored in Layer.data\n    layer.extractLayerImage();\n\n    // write_image from imagefmt is used here to export the layer as a PNG\n    write_image(buildPath(outputFolder, layer.name~\".png\"), layer.width, layer.height, layer.data, 4);\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finochi2d%2Fpsd-d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finochi2d%2Fpsd-d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finochi2d%2Fpsd-d/lists"}