{"id":13604061,"url":"https://github.com/lovell/avif-cli","last_synced_at":"2025-04-09T05:11:43.267Z","repository":{"id":38019042,"uuid":"302446371","full_name":"lovell/avif-cli","owner":"lovell","description":"Command line utility to convert images to AVIF","archived":false,"fork":false,"pushed_at":"2024-09-09T17:16:09.000Z","size":24,"stargazers_count":197,"open_issues_count":4,"forks_count":20,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-02T04:04:37.265Z","etag":null,"topics":["avif","avif-encoder","cli"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lovell.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}},"created_at":"2020-10-08T19:48:34.000Z","updated_at":"2025-03-29T21:17:42.000Z","dependencies_parsed_at":"2024-09-09T20:53:53.579Z","dependency_job_id":null,"html_url":"https://github.com/lovell/avif-cli","commit_stats":{"total_commits":46,"total_committers":7,"mean_commits":6.571428571428571,"dds":"0.15217391304347827","last_synced_commit":"df786a8dfa3ea229ab29b5934fc0de72591b7f3e"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovell%2Favif-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovell%2Favif-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovell%2Favif-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovell%2Favif-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lovell","download_url":"https://codeload.github.com/lovell/avif-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980844,"owners_count":21027808,"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":["avif","avif-encoder","cli"],"created_at":"2024-08-01T19:00:39.183Z","updated_at":"2025-04-09T05:11:43.243Z","avatar_url":"https://github.com/lovell.png","language":"JavaScript","funding_links":[],"categories":["for user"],"sub_categories":[],"readme":"# avif-cli\n\nCommand line utility to convert images to AVIF,\nrequires a Node-API v9 compatible runtime:\n\n- Node.js 18.17.0+\n- Deno\n- Bun\n\n## Usage\n\nBy default, will search current directory for image files and create AVIF variants.\n\nExit code is non-zero if one or more errors occurred.\n\n### npm\n\n```sh\nnpx avif\n```\n\n### pnpm\n\n```sh\npnpm dlx avif\n```\n\n### Deno\n\n```sh\ndeno run --allow-ffi --allow-read npm:avif\n```\n\n### Bun\n\n```sh\nbun x avif\n```\n\n### yarn\n\n```sh\nyarn dlx avif\n```\n\n## Options\n\n```\nOptions:\n      --input               Input file name(s), supports globs/wildcards\n                    [string] [default: \"*.{jpg,jpeg,tif,tiff,webp,png,gif,svg}\"]\n      --output              Output directory, default is same directory as input\n                                                          [string] [default: \"\"]\n      --quality             Quality vs file size, 1 (lowest/smallest) to 100\n                            (highest/largest)             [number] [default: 50]\n      --effort              CPU effort vs file size, 0 (fastest/largest) to 9\n                            (slowest/smallest)             [number] [default: 4]\n      --lossless            Use lossless compression  [boolean] [default: false]\n      --chroma-subsampling  Set to '4:2:0' to use chroma subsampling\n                         [string] [choices: \"4:2:0\", \"4:4:4\"] [default: \"4:4:4\"]\n      --keep-metadata       Keep all metadata (EXIF, ICC, XMP, IPTC)\n                                                      [boolean] [default: false]\n      --overwrite           Allow existing output files to be overwritten\n                                                      [boolean] [default: false]\n      --append-ext          Append .avif to the file name instead of replacing\n                            the current extension (foo.jpg =\u003e foo.jpg.avif)\n                                                      [boolean] [default: false]\n      --verbose             Write progress to stdout  [boolean] [default: false]\n  -h, --help                Show help                                  [boolean]\n      --version             Show version number                        [boolean]\n```\n\n## Examples\n\n```sh\nnpx avif --verbose\n```\n\n```sh\nnpx avif --input=\"**/*.{jpg,jpeg}\" --output=\"/another/path\" --overwrite\n```\n\n```sh\nnpx avif --input=\"images/*.*\" --effort=0 --quality=30 --keep-metadata\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovell%2Favif-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flovell%2Favif-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovell%2Favif-cli/lists"}