{"id":20887963,"url":"https://github.com/canop/squale","last_synced_at":"2025-10-12T18:54:36.150Z","repository":{"id":152329222,"uuid":"609614416","full_name":"Canop/squale","owner":"Canop","description":"Small utility to scale images","archived":false,"fork":false,"pushed_at":"2023-07-07T20:15:12.000Z","size":60,"stargazers_count":11,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-15T12:24:15.438Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Canop.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}},"created_at":"2023-03-04T17:58:28.000Z","updated_at":"2025-04-13T21:03:38.000Z","dependencies_parsed_at":"2023-09-24T07:01:24.432Z","dependency_job_id":null,"html_url":"https://github.com/Canop/squale","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"85410d0e9feb3d2da80d9379640e62c2ad78f788"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Canop/squale","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Canop%2Fsquale","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Canop%2Fsquale/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Canop%2Fsquale/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Canop%2Fsquale/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Canop","download_url":"https://codeload.github.com/Canop/squale/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Canop%2Fsquale/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279012528,"owners_count":26085134,"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-10-12T02:00:06.719Z","response_time":53,"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":[],"created_at":"2024-11-18T08:23:33.916Z","updated_at":"2025-10-12T18:54:36.097Z","avatar_url":"https://github.com/Canop.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# squale\n\n[![MIT][s2]][l2] [![Latest Version][s1]][l1] [![Chat on Miaou][s4]][l4]\n\n[s1]: https://img.shields.io/crates/v/squale.svg\n[l1]: https://crates.io/crates/squale\n\n[s2]: https://img.shields.io/badge/license-MIT-blue.svg\n[l2]: LICENSE\n\n[s4]: https://miaou.dystroy.org/static/shields/room.svg\n[l4]: https://miaou.dystroy.org/3768?Rust\n\n\nA small utility upscaling or downscaling images.\n\n## Installation\n\n```bash\ncargo install squale\n```\n\n## Usage\n\nSpecify the dimensions that output images must fit and pass image path(s) as argument:\n\n```bash\nsquale --fit 800x600 trav/tracteurs/*\n```\n\nSquale filters out non images and files whose name looks like its own output.\n\n\nGenerated images are named according to the specified fitting rectangle (real image dimensions may be smaller, as proportions are kept).\n\n\nFor example, assuming you have those files:\n\n![tree-before](doc/tree-before.png)\n\nRun\n\n\n```bash\nsquale --fit 800x600 trav/tracteurs/*\n```\n\nThen, you'll get\n\n![tree-after](doc/tree-after.png)\n\n\nList of arguments is available on `squale --help`\n\n## Output images\n\nImages are scaled up or down with the Lanczos sampling algorithm (window 3) which isn't terribly fast but gives excellent results.\n\nScaled PNG, ICO, and BMP images are saved as PNG.\n\nOther kinds of images are saved as JPEG. Default quality is 85 but it can be changed with the `--jpeg-quality` parameter.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanop%2Fsquale","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcanop%2Fsquale","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanop%2Fsquale/lists"}