{"id":25404911,"url":"https://github.com/star-plan/image-glider","last_synced_at":"2025-04-12T19:35:39.965Z","repository":{"id":276594074,"uuid":"929728870","full_name":"star-plan/image-glider","owner":"star-plan","description":"ImageGlider 是一个基于 .NET 8 和 ImageSharp 的跨平台批量图像格式转换工具，支持 AOT 编译。它能自动扫描指定扩展名的图像文件，将其转换为目标格式，并智能管理输出、失败文件及日志记录，为图像转换提供高效便捷的解决方案。","archived":false,"fork":false,"pushed_at":"2025-02-09T09:15:05.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T09:28:23.739Z","etag":null,"topics":["aot","batch-processing","cli","cross-platform","csharp","dotnet","dotnet8","image-conversion","image-processing","imagesharp"],"latest_commit_sha":null,"homepage":"","language":"C#","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/star-plan.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":"2025-02-09T08:49:23.000Z","updated_at":"2025-02-09T09:10:16.000Z","dependencies_parsed_at":"2025-02-09T09:38:47.025Z","dependency_job_id":null,"html_url":"https://github.com/star-plan/image-glider","commit_stats":null,"previous_names":["deali-axy/image-glider"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/star-plan%2Fimage-glider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/star-plan%2Fimage-glider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/star-plan%2Fimage-glider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/star-plan%2Fimage-glider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/star-plan","download_url":"https://codeload.github.com/star-plan/image-glider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248622877,"owners_count":21135128,"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":["aot","batch-processing","cli","cross-platform","csharp","dotnet","dotnet8","image-conversion","image-processing","imagesharp"],"created_at":"2025-02-16T04:25:03.605Z","updated_at":"2025-04-12T19:35:39.937Z","avatar_url":"https://github.com/star-plan.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# ImageGlider\n\n**ImageGlider** 是一个跨平台的命令行工具，使用 C# (.NET 8) 和 [ImageSharp](https://github.com/SixLabors/ImageSharp) 实现批量图像格式转换。该工具支持 AOT 编译，提供原生性能，并能够将转换后的图像、失败转换的文件和日志文件分别整理到专门的目录中。\n\n## 特性\n\n- **跨平台**：基于 .NET 8 和 ImageSharp，支持 Windows、Linux、macOS 等平台。\n- **AOT 编译**：利用 .NET 8 的 AOT 功能，提供更快的启动速度和原生性能。\n- **批量转换**：自动扫描当前目录中所有指定扩展名的文件，并批量转换。\n- **用户自定义**：运行时可输入源文件扩展名和目标文件扩展名，自由控制转换格式。\n- **目录管理**：转换成功的文件存放在 `output` 目录中，转换失败的文件自动移至 `failed` 目录。\n- **详细日志**：整个转换过程会记录详细日志，日志文件存放在 `log` 目录中，文件名格式为 `ImageGlider_时间戳.log`。\n\n## 前置条件\n\n- [.NET 8 SDK](https://dotnet.microsoft.com/download/dotnet/8.0)\n- ImageSharp 库（已通过 NuGet 引入）\n\n## 快速开始\n\n### 克隆仓库\n\n```bash\ngit clone git@github.com:Deali-Axy/image-glider.git\ncd image-glider\n```\n\n### 恢复依赖\n\n```\ndotnet restore\n```\n\n### 构建项目\n\n```\ndotnet build -c Release\n```\n\n### 使用 AOT 发布\n\n假设目标平台为 Windows x64（如需其他平台，请更改 `-r` 参数）：\n\n```\ndotnet publish -c Release -r win-x64 --self-contained true /p:PublishAot=true\n```\n\n发布后生成的可执行文件位于 `bin/Release/net8.0/win-x64/publish` 目录中。\n\n### 运行程序\n\n在发布目录下运行生成的可执行文件，程序将提示你输入源文件扩展名和目标文件扩展名，然后开始批量转换。\n\n## 使用说明\n\n1. **输入扩展名**\n   程序启动时，会要求输入原始文件扩展名（例如 `.jfif`）和目标文件扩展名（例如 `.jpeg` 或 `.png`）。输入后，程序会自动检查并补全扩展名前的点号。\n2. **文件转换**\n    - 程序在当前目录中查找所有符合源扩展名的文件。\n    - 转换成功的文件会存放在 `output` 目录中。\n    - 转换失败的文件会被移动到 `failed` 目录中。\n3. **日志记录**\n   所有转换过程的详细日志会写入到 `log` 目录下，日志文件名称格式为 `ImageGlider_YYYYMMDD_HHmmss.log`。\n\n## 贡献\n\n欢迎贡献代码、提交 issue 或 pull request，共同完善这个项目。\n\n## 许可\n\n本项目采用 MIT License 许可协议。\n\n## 致谢\n\n- 感谢 [ImageSharp](https://github.com/SixLabors/ImageSharp) 提供强大的图像处理支持。\n- 感谢 .NET 8 提供跨平台与 AOT 编译的先进特性。\n- 感谢所有开源社区的成员对本项目的支持和贡献。\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstar-plan%2Fimage-glider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstar-plan%2Fimage-glider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstar-plan%2Fimage-glider/lists"}