{"id":51601355,"url":"https://github.com/neg4n/image-square-wizard","last_synced_at":"2026-07-11T22:30:55.336Z","repository":{"id":369784673,"uuid":"1079085400","full_name":"neg4n/image-square-wizard","owner":"neg4n","description":"image square wizard pads rectangular or panoramic images to a square canvas using libvips, auto measuring the domimant color with options to customize","archived":false,"fork":false,"pushed_at":"2026-07-06T23:06:31.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-07T01:06:07.396Z","etag":null,"topics":["c","cli","cli-tool","heif","image-manipulation","image-utility","jpeg","jpg","libvips","png","vips","webp"],"latest_commit_sha":null,"homepage":"https://neg4n.dev/explore/image-square-wizard/overview","language":"C","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/neg4n.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-19T04:06:52.000Z","updated_at":"2026-07-06T23:06:35.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/neg4n/image-square-wizard","commit_stats":null,"previous_names":["neg4n/image-square-wizard"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/neg4n/image-square-wizard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neg4n%2Fimage-square-wizard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neg4n%2Fimage-square-wizard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neg4n%2Fimage-square-wizard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neg4n%2Fimage-square-wizard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neg4n","download_url":"https://codeload.github.com/neg4n/image-square-wizard/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neg4n%2Fimage-square-wizard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35377012,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-11T02:00:05.354Z","response_time":104,"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":["c","cli","cli-tool","heif","image-manipulation","image-utility","jpeg","jpg","libvips","png","vips","webp"],"created_at":"2026-07-11T22:30:54.349Z","updated_at":"2026-07-11T22:30:55.327Z","avatar_url":"https://github.com/neg4n.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n\nhttps://github.com/user-attachments/assets/c9a5fca3-eff5-4efd-a837-e5e621018e7d\n\n\n# image-square-wizard\n\n**isw** _(image square wizard)_ pads rectangular or panoramic images to a\nsquare canvas using [`libvips`][libvips]. It measures the dominant colour (or\naccepts a user-provided colour / transparent fill) and expands the image evenly\non each side. It can also build an opt-in blurred background from the image\nitself, which is useful for thumbnails, previews, and social posts where solid\npadding would look too flat.\n\n## Features\n\n- Fast. Built in C.\n- JPEG, PNG, WebP, HEIF/HEIC, TIFF, AVIF support out of the box.\n- Only one command. Specify input \u0026 output along with extensions and thats it.\n- Automatic detection of aspect ratio.\n- Probing of the dominant color of the image to be used for padding (by default).\n- Customization options, e.g. provide your own colors.\n\n### Prerequisites\n\n- [`libvips`][libvips] 8.12 – 8.18 (tested with 8.17.2). Install via your package manager,\n  e.g. `brew install vips` on macOS or `apt install libvips-dev` on Debian/Ubuntu.\n- Meson (\u003e= 1.1) and Ninja for the build.\n- A C11 toolchain (e.g. clang or gcc) with pkg-config.\n\n### Build Steps\n\n1. Clone the repository: `git clone https://github.com/neg4n/image-square-wizard isw \u0026\u0026 cd isw`\n2. Configure the build directory: `meson setup build`\n3. Compile: `meson compile -C build`\n\n### Installation\n\nRun `meson install -C build` inside the repository's root in order to install the `isw` binary and man page. Adjust\n`DESTDIR` or `--prefix` during `meson setup` if you need a custom location.\n\n### Usage\n\nRun `isw input.jpg output.png` for the default solid dominant-colour padding.\n\nUse `isw --blur input.jpg output.png` to generate the square canvas from the\nimage itself:\n\n- The image is resized to cover the square canvas.\n- The covered image is centre-cropped, heavily blurred, and subtly toned.\n- The original image is inserted back in the centre unchanged.\n- For alpha-capable outputs, the generated blur padding is opaque while the\n  original image keeps its own alpha.\n\nManual backgrounds still use `--rcb`; `--blur` and `--rcb` are mutually\nexclusive.\n\nInspect options with `isw --help` or `man isw`.\n\n## License\n\nMIT\n\n[libvips]: https://github.com/libvips/libvips\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneg4n%2Fimage-square-wizard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneg4n%2Fimage-square-wizard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneg4n%2Fimage-square-wizard/lists"}