{"id":20270986,"url":"https://github.com/swiftdo/flutter_imges_generator","last_synced_at":"2025-08-24T02:16:04.233Z","repository":{"id":133784152,"uuid":"476922522","full_name":"swiftdo/flutter_imges_generator","owner":"swiftdo","description":"flutter 图片生成器，将 3x 生成  1x 2x 3x 等","archived":false,"fork":false,"pushed_at":"2022-04-02T03:48:02.000Z","size":38,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-14T05:44:20.963Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/swiftdo.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":"2022-04-02T02:09:34.000Z","updated_at":"2022-04-02T03:26:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"2cfb1cdb-f38d-4107-9b75-9c4c2c214fe5","html_url":"https://github.com/swiftdo/flutter_imges_generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftdo%2Fflutter_imges_generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftdo%2Fflutter_imges_generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftdo%2Fflutter_imges_generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftdo%2Fflutter_imges_generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swiftdo","download_url":"https://codeload.github.com/swiftdo/flutter_imges_generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241758954,"owners_count":20015249,"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":[],"created_at":"2024-11-14T12:35:28.971Z","updated_at":"2025-03-04T00:00:04.589Z","avatar_url":"https://github.com/swiftdo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 生成 flutter 结构的图片\n\n做重复的工作是很烦人的。\n\n```\nDo not repeat yourself!\n```\n\n本工具直接将 3x 图生成到 assets 目录中。\n\nassets 目录中包含 1x，2x, 3x 的图片，已帮你做好按 flutter 标准目录归类。\n\n支持3倍图命名`@3x.png、.png`\n\n## 使用\n\n拉取项目：\n\n```py\ngit clone https://github.com/swiftdo/flutter_imges_generator.git\n```\n\n**直接将你要生成的图片放入到该项目里面。**\n\n然后执行：\n\n```sh\n$ python3 -m venv .venv \n$ source .venv/bin/activate\n$ pip install -r requirements.txt\n$ python resize.py\n```\n\n\n执行完成后，会生成如下目录：\n\n```\n$ tree .\n.\n├── README.md\n├── add_success.png\n├── assets\n│   ├── 2x\n│   │   ├── add_success.png\n│   │   └── limit.png\n│   ├── 3x\n│   │   ├── add_success.png\n│   │   └── limit.png\n│   ├── add_success.png\n│   └── limit.png\n├── limit@3x.png\n├── requirements.txt\n└── resize.py\n```\n\n**assets** 目录就是你要的文件。当然为了获得更小的资源，可以用工具 [ImageOptim](https://imageoptim.com/mac) 批量压缩。\n\n## 关于\n\n个人博客站点：[oldbird.run](https://oldbird.run)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftdo%2Fflutter_imges_generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswiftdo%2Fflutter_imges_generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftdo%2Fflutter_imges_generator/lists"}