{"id":50146703,"url":"https://github.com/noclaps/imgoptim","last_synced_at":"2026-05-24T05:08:30.358Z","repository":{"id":359907168,"uuid":"1247966000","full_name":"noClaps/imgoptim","owner":"noClaps","description":"A command line utility to optimise images.","archived":false,"fork":false,"pushed_at":"2026-05-24T03:53:51.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-24T04:29:40.981Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noClaps.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-24T02:34:26.000Z","updated_at":"2026-05-24T03:53:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/noClaps/imgoptim","commit_stats":null,"previous_names":["noclaps/imgoptim"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/noClaps/imgoptim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noClaps%2Fimgoptim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noClaps%2Fimgoptim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noClaps%2Fimgoptim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noClaps%2Fimgoptim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noClaps","download_url":"https://codeload.github.com/noClaps/imgoptim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noClaps%2Fimgoptim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33422091,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T22:14:44.296Z","status":"online","status_checked_at":"2026-05-24T02:00:06.296Z","response_time":57,"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":"2026-05-24T05:08:20.005Z","updated_at":"2026-05-24T05:08:30.344Z","avatar_url":"https://github.com/noClaps.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# imgoptim\n\nA command line utility to optimise images.\n\n## Build instructions\n\nYou'll need [Rust](https://rust-lang.org).\n\n```sh\ncargo install --git https://github.com/noClaps/imgoptim\n```\n\n## Usage\n\n```\nA command line utility to optimise images\n\nUsage: imgoptim \u003cCOMMAND\u003e\n\nCommands:\n  optimise  Optimise HEIC images to AVIF\n  height    Get the height of an AVIF image\n  help      Print this message or the help of the given subcommand(s)\n\nOptions:\n  -h, --help  Print help\n```\n\nYou can view the help for the command using `--help` or `-h`:\n\n```sh\nimgoptim --help\nimgoptim -h\n```\n\n### Optimise\n\n```\nOptimise HEIC images to AVIF\n\nUsage: imgoptim optimise [OPTIONS] \u003cPATH\u003e \u003cOUT_PATH\u003e\n\nArguments:\n  \u003cPATH\u003e      Path to the image you'd like to optimise\n  \u003cOUT_PATH\u003e  Output path for the optimised image\n\nOptions:\n  -W, --width \u003cWIDTH\u003e  Set the width of the output image in pixels\n  -h, --help           Print help\n```\n\nYou need to pass in a path to a HEIC image, and an output path:\n\n```sh\nimgoptim optimise path/to/image.heic path/to/image.avif\n```\n\nThis will optimise your input HEIC image to an AVIF image, retaining the same dimensions. If you'd like to customise the width of the image, you can do so with the `--width` or `-W` option:\n\n```sh\nimgoptim optimise path/to/image.png path/to/image.avif --width 800 # pixels\nimgoptim optimise path/to/image.png path/to/image.avif -W 800 # pixels\n```\n\nThis will retain the aspect ratio of the input image, but will resize it to be the width you've set.\n\n```sh\nimgoptim optimise image.png image.avif # 4032x3024\nimgoptim optimise image.png image.avif --width 800 # 800x600\n```\n\nYou can view the help for the command using `--help` or `-h`:\n\n```sh\nimgoptim optimise --help\nimgoptim optimise -h\n```\n\n### Height\n\n```\nGet the height of an AVIF image\n\nUsage: imgoptim height \u003cPATH\u003e\n\nArguments:\n  \u003cPATH\u003e  Path to the image to get the height of\n\nOptions:\n  -h, --help  Print help\n```\n\nYou can get the height of a given AVIF image using the `imgoptim height` command.\n\n```sh\nimgoptim height path/to/image.avif # 600\n```\n\nYou can view the help for the command using `--help` or `-h`:\n\n```sh\nimgoptim height --help\nimgoptim height -h\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoclaps%2Fimgoptim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoclaps%2Fimgoptim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoclaps%2Fimgoptim/lists"}