{"id":25767120,"url":"https://github.com/vdistortion/to-webp-json","last_synced_at":"2025-10-28T08:09:39.224Z","repository":{"id":170155680,"uuid":"624050109","full_name":"vdistortion/to-webp-json","owner":"vdistortion","description":"Image conversion to WebP and more","archived":false,"fork":false,"pushed_at":"2025-06-08T15:18:22.000Z","size":1201,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-10T15:45:31.794Z","etag":null,"topics":["cli-tool","image-conversion","nodejs","typescript"],"latest_commit_sha":null,"homepage":"https://zvalentin.ru/to-webp-json/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vdistortion.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2023-04-05T16:30:03.000Z","updated_at":"2025-06-08T15:19:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea61a0c6-183a-4488-a690-a4380194e906","html_url":"https://github.com/vdistortion/to-webp-json","commit_stats":{"total_commits":27,"total_committers":3,"mean_commits":9.0,"dds":0.4814814814814815,"last_synced_commit":"d567b3f2409539997565d00b235e8f44af8e7984"},"previous_names":["astrotrain55/to-webp","astrotrain55/to-webp-json"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vdistortion/to-webp-json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdistortion%2Fto-webp-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdistortion%2Fto-webp-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdistortion%2Fto-webp-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdistortion%2Fto-webp-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vdistortion","download_url":"https://codeload.github.com/vdistortion/to-webp-json/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdistortion%2Fto-webp-json/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261417578,"owners_count":23155073,"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-tool","image-conversion","nodejs","typescript"],"created_at":"2025-02-26T23:19:08.092Z","updated_at":"2025-10-28T08:09:39.207Z","avatar_url":"https://github.com/vdistortion.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# to-webp-json\n\n[![NPM Version](https://img.shields.io/npm/v/to-webp-json?style=flat\u0026logo=npm\u0026label=version\u0026color=cb3837)](https://www.npmjs.com/package/to-webp-json)\n[![GitHub Created At](https://img.shields.io/github/created-at/vdistortion/to-webp-json?style=flat\u0026logo=github)](https://github.com/vdistortion/to-webp-json)\n[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz_small.svg)](https://stackblitz.com/github/vdistortion/to-webp-json)\n\n[![to-webp-json](docs/bg.jpg)](https://vdistortion.github.io/to-webp-json/)\n\nA CLI tool that converts images to the desired format, generates a structured JSON map of the output files, and optionally resizes them by width and/or height. Useful for static sites, galleries, and automation.\n\n## 📖 Usage\n\nCreate an `img-src` folder\n\n```shell\nmkdir img-src\n```\n\nPlace images inside `img-src`\n\n```shell\nnpx to-webp-json@latest\n```\n\n## 💻 Command-line options\n\n| Option      | Type           | Description                                                                | Default  |\n| ----------- | -------------- | -------------------------------------------------------------------------- | -------- |\n| src         | string         | Source folder name                                                         | img-src  |\n| dist        | string         | Result folder name                                                         | img-dist |\n| format      | string         | Output format: `webp`, `jpg`, `png`, `avif`, or keep original (`original`) | webp     |\n| json        | string \\| null | Output JSON filename (or null to skip)                                     | null     |\n| width       | number \\| null | Maximum image width in pixels                                              | null     |\n| height      | number \\| null | Maximum image height in pixels                                             | null     |\n| concurrency | number         | Maximum number of concurrent image processing tasks                        | 5        |\n\n## ✨ Examples\n\n```shell\nnpx to-webp-json json=static-images format=original\n```\n\n```shell\nnpx to-webp-json src=sources height=2000\n```\n\nRun with no arguments (interactive mode)\n\n```shell\nnpx to-webp-json\n```\n\n## 🌍 Translations\n\nThe documentation is available in several languages, but it can always be improved.\nIf you notice mistakes or want to add a new language, contributions are very welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdistortion%2Fto-webp-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvdistortion%2Fto-webp-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdistortion%2Fto-webp-json/lists"}