{"id":19978461,"url":"https://github.com/fiercex/raw2img","last_synced_at":"2025-07-28T22:37:41.034Z","repository":{"id":231060192,"uuid":"780709902","full_name":"fierceX/raw2img","owner":"fierceX","description":"raw2img","archived":false,"fork":false,"pushed_at":"2024-11-25T07:37:23.000Z","size":234,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T19:16:07.342Z","etag":null,"topics":["raw2img","raw2jpg","raw2webp"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/fierceX.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-02T02:30:29.000Z","updated_at":"2024-11-25T07:37:26.000Z","dependencies_parsed_at":"2024-11-05T09:26:21.320Z","dependency_job_id":"f4cdb5c3-7dfa-42fd-bbfb-b1435275d291","html_url":"https://github.com/fierceX/raw2img","commit_stats":null,"previous_names":["fiercex/raw2jpg","fiercex/raw2img"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/fierceX/raw2img","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fierceX%2Fraw2img","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fierceX%2Fraw2img/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fierceX%2Fraw2img/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fierceX%2Fraw2img/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fierceX","download_url":"https://codeload.github.com/fierceX/raw2img/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fierceX%2Fraw2img/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267598513,"owners_count":24113638,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["raw2img","raw2jpg","raw2webp"],"created_at":"2024-11-13T03:33:43.105Z","updated_at":"2025-07-28T22:37:41.017Z","avatar_url":"https://github.com/fierceX.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Raw 转换 Img 工具\n\n基于 [Libraw](https://www.libraw.org/) 库进行Raw格式的解析，并且添加了一系列参数进行调整，并支持 3D Lut 滤镜。 \n\n## 编译\n\n### 编译Web前端\n\n编译前端需要安装 [trunk](https://trunkrs.dev/)，安装完成后使用该工具进行编译\n\n进入 `web` 目录，并执行编译命令：\n\n```shell\ntrunk build --release\n```\n编译完成后会在该目录下生成 `dist` 结果目录。\n\n### 编译raw2img\n将前端的编译结果 `dist` 目录复制到 `raw2img` 目录下，并在此目录执行编译命令：\n\n```shell\ncargo build --release\n```\n编译完成后会在 `target/release/` 目录下生成 `raw2img` 可执行文件，该文件已经包含了前端文件。\n\n## 使用\n\n### 转换单个文件\n\n使用`convert`子命令可以对单个文件进行转换，具体可以使用help命令进行参考\n\n```shell\nraw2img help convert\n```\n\n### 启动web服务\n\n使用`server`子命令可以启动 web 服务，默认监听0.0.0.0:8081端口，其他选项参考help命令\n\n```shell\nraw2img server\n```\n\n启动后，可以通过`curl`创建用户：\n\n```shell\ncurl -X POST -d \"username=admin\u0026email=admin@example.com\u0026password=admin\" http://127.0.0.1:8081/create_user\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiercex%2Fraw2img","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffiercex%2Fraw2img","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiercex%2Fraw2img/lists"}