{"id":26883795,"url":"https://github.com/jiro4989/imgctl","last_synced_at":"2025-07-12T03:15:59.217Z","repository":{"id":80274037,"uuid":"190343202","full_name":"jiro4989/imgctl","owner":"jiro4989","description":"複数の画像を一括操作するだけのツール","archived":false,"fork":false,"pushed_at":"2019-06-11T22:18:35.000Z","size":1348,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-09-04T16:41:05.162Z","etag":null,"topics":["cli","command","go","image","rpg-maker"],"latest_commit_sha":null,"homepage":"","language":"Go","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/jiro4989.png","metadata":{"files":{"readme":"README.adoc","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":"2019-06-05T07:03:52.000Z","updated_at":"2024-06-19T10:06:49.354Z","dependencies_parsed_at":null,"dependency_job_id":"0650de76-f212-4851-8d3c-b398d4f99de1","html_url":"https://github.com/jiro4989/imgctl","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fimgctl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fimgctl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fimgctl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fimgctl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jiro4989","download_url":"https://codeload.github.com/jiro4989/imgctl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246509960,"owners_count":20789265,"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":["cli","command","go","image","rpg-maker"],"created_at":"2025-03-31T17:37:12.495Z","updated_at":"2025-03-31T17:37:13.666Z","avatar_url":"https://github.com/jiro4989.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"= imgctl\n:toc: left\n:sectnums:\n\nimage:https://travis-ci.org/jiro4989/imgctl.svg?branch=master[\"Build Status\", link=\"https://travis-ci.org/jiro4989/imgctl\"]\n\nimgctlは画像を一括操作するためのコマンドです。\n\n== 開発環境\n\n go version go1.12 linux/amd64\n\n== 使い方\n\nサブコマンドの機能について記載する。\n\n=== generate\n\n`:` をセパレータにファイルを指定する。\n`:` で区切られた引数1つが1つの画像ファイルになる。\n\n[source,bash]\n----\nimgctl generate body.png:eye.png:mouse.png: body.png:eye2.png:mouse2.png\n----\n\n=== crop\n\n画像を指定の矩形で切り取って画像を保存する。\nxとyは省略できる\n\n[source,bash]\n----\nimgctl crop -x 20 -y 30 -W 144 -H 144 actor1.png actor2.png\nimgctl crop -W 144 -H 144 actor1.png actor2.png\n----\n\n=== flip\n\n画像を左右反転して保存する。\n\n[source,bash]\n----\nimgctl flip actor1.png actor2.png\n----\n\n=== scale\n\n画像を拡大・縮小して保存する。\n100のときは拡大率100%として保存する。\n\n[source,bash]\n----\nimgctl scale -s 120 actor1.png actor2.png\n----\n\n=== paste\n\n複数の画像をタイル状に並べて配置して統合する。\n\n[source,bash]\n----\nimgctl paste -r 2 -c 4 -W 144 -H 144 face1.png face2.png face3.png face4.png\n----\n\n=== all\n\ngenerate, crop, paste and flipを連続して実行する。\n成果物はカレントディレクトリ、あるいは設定ファイルに基づいて生成される。\n\n例えばカレントディレクトリにtextimg.configというファイルが存在したとき\nその設定ファイルを参照するようになる。オプションでも指定できる。\n\n[source,bash]\n----\nimgctl all config.json\n----\n\n設定ファイルの記述で、出力先ディレクトリを指定すると\nあとはそのディレクトリの配下にディレクトリを作って自動で生成する。\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiro4989%2Fimgctl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiro4989%2Fimgctl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiro4989%2Fimgctl/lists"}