{"id":21476596,"url":"https://github.com/kazuhito00/clip_studio_paint_tool","last_synced_at":"2025-07-15T10:32:21.304Z","repository":{"id":231836321,"uuid":"782818290","full_name":"Kazuhito00/clip_studio_paint_tool","owner":"Kazuhito00","description":"CLIP STUDIO PAINT（クリスタ）のファイル（.clip）から、レイヤー名やサムネイル画像、ラスター画像を取得するツール（非公式）","archived":false,"fork":false,"pushed_at":"2024-07-21T15:51:54.000Z","size":547,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-07-21T17:27:16.081Z","etag":null,"topics":["clip-studio-paint","csp","opencv","python"],"latest_commit_sha":null,"homepage":"","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/Kazuhito00.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}},"created_at":"2024-04-06T05:50:20.000Z","updated_at":"2024-07-21T15:51:57.000Z","dependencies_parsed_at":"2024-04-06T07:27:34.388Z","dependency_job_id":"f0f8c786-368f-49f3-8b89-df72542c6cce","html_url":"https://github.com/Kazuhito00/clip_studio_paint_tool","commit_stats":null,"previous_names":["kazuhito00/clip_studio_paint_tool"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kazuhito00%2Fclip_studio_paint_tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kazuhito00%2Fclip_studio_paint_tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kazuhito00%2Fclip_studio_paint_tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kazuhito00%2Fclip_studio_paint_tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kazuhito00","download_url":"https://codeload.github.com/Kazuhito00/clip_studio_paint_tool/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226033263,"owners_count":17563125,"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":["clip-studio-paint","csp","opencv","python"],"created_at":"2024-11-23T11:09:33.528Z","updated_at":"2024-11-23T11:09:34.427Z","avatar_url":"https://github.com/Kazuhito00.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clip_studio_paint_tool\nCLIP STUDIO PAINT（クリスタ）のファイル（.clip）から、レイヤー名やサムネイル画像、ラスター画像を取得するツールです（非公式）\u003cbr\u003eグレースケール画像やモノクロ画像には対応していません\u003cbr\u003e\n\u003cimg src=\"https://github.com/Kazuhito00/clip_studio_paint_tool/assets/37477845/9a77031b-0f98-4836-ad6f-ae64d7645e57\" width=\"45%\"\u003e　\u003cimg src=\"https://github.com/Kazuhito00/clip_studio_paint_tool/assets/37477845/21b0d6c5-1b72-4000-8e2c-aad4754e3e19\" width=\"45%\"\u003e\n\n# Requirement\n```\nnumpy 1.26.2           or later\nopencv-python 4.9.0.80 or later\n```\n\n# Usage\nデモの実行方法は以下です。\n```bash\npython csp_tool.py\n```\n\n```python\n# CspToolインスタンス生成\ncsp_tool = CspTool('test.clip')\n\n# サムネイル画像取得\nthumbnail_image = csp_tool.get_thumbnail_image()\n\n# レイヤー情報取得\nlayer_list = csp_tool.get_layer_list()\nfor layer_data in layer_list:\n    test_string = layer_data['layer_name']\n    test_string += ' (Canvas ID:' + str(layer_data['canvas_id'])\n    test_string += ' Layer ID:' + str(layer_data['main_id']) + ')'\n    print(test_string)\n\n# ラスターデータ取得\nbgr_image, alpha_image, bgra_image = csp_tool.get_raster_data(\n    canvas_id=1,\n    layer_id=3,\n)\n\n# 表示確認\ncv2.imshow('Clip Studio Paint File : Thumbnail Image', thumbnail_image)\ncv2.imshow('Clip Studio Paint File : Image', bgr_image)\ncv2.imshow('Clip Studio Paint File : Alpha', alpha_image)\ncv2.waitKey(-1)\n```\n\n# ToDo\n- [ ] ブロックデータの処理をパラレルにして高速化する\n- [ ] グレースケール、モノクロ画像の読み出しに対応する\n\n# Author\n高橋かずひと(https://twitter.com/KzhtTkhs)\n \n# License \nclip_studio_paint_tool is under [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkazuhito00%2Fclip_studio_paint_tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkazuhito00%2Fclip_studio_paint_tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkazuhito00%2Fclip_studio_paint_tool/lists"}