{"id":20340915,"url":"https://github.com/leancodepl/flutter_webp","last_synced_at":"2025-09-23T05:30:45.792Z","repository":{"id":243692404,"uuid":"803220251","full_name":"leancodepl/flutter_webp","owner":"leancodepl","description":"Asset transformer for converting images into WebP files.","archived":false,"fork":false,"pushed_at":"2024-06-18T14:13:29.000Z","size":156,"stargazers_count":6,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-07T17:21:23.668Z","etag":null,"topics":["flutter","webp"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/webp","language":"Dart","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/leancodepl.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}},"created_at":"2024-05-20T09:58:54.000Z","updated_at":"2024-12-27T00:02:06.000Z","dependencies_parsed_at":"2024-06-17T09:56:43.011Z","dependency_job_id":"61b3284f-0bfd-4784-98ac-450ac732d1e4","html_url":"https://github.com/leancodepl/flutter_webp","commit_stats":null,"previous_names":["leancodepl/flutter_webp"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancodepl%2Fflutter_webp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancodepl%2Fflutter_webp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancodepl%2Fflutter_webp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancodepl%2Fflutter_webp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leancodepl","download_url":"https://codeload.github.com/leancodepl/flutter_webp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233929300,"owners_count":18752545,"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":["flutter","webp"],"created_at":"2024-11-14T21:24:39.062Z","updated_at":"2025-09-23T05:30:40.461Z","avatar_url":"https://github.com/leancodepl.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# webp\n\n[![webp pub.dev badge][pub-badge]][pub-badge-link]\n[![][build-badge]][build-badge-link]\n\nAsset transformer for converting images into WebP files.\n\n## Install package\n\n```\nflutter pub add webp\n```\n\n## Package usage\n\nAdd to your `pubspec.yaml`.\n\n### Default usage\n\nIf run without additional arguments, the default value of the quality parameter = 75 with lossy compression will be used.\n\n```yaml\nflutter:\n  assets:\n    - path: assets/logo.jpg\n      transformers:\n        - package: webp\n```\n\n### Usage with params\n\n```yaml\nflutter:\n  assets:\n    - path: assets/logo.jpg\n      transformers:\n        - package: webp\n          args: ['--quality=65', '--hint=graph', '--af']\n```\n\nBy default, the package runs the embedded precompiled cwebp binary. You can use the one specified in your `$PATH` by adding the `--from_path` flag.\n\n```yaml\nflutter:\n  assets:\n    - path: assets/logo.jpg\n      transformers:\n        - package: webp\n          args: ['--from_path']\n```\n\n## cwebp parameters\n\nHere are some commonly used parameters for cwebp:\n\n- `-q`, `--quality`: Set the quality factor for the output image. The value should be between 0 and 100, with 100 being the highest quality. For example, `--quality=80`.\n- `--lossless`: Encode the image without any loss. For images with fully transparent area, the invisible pixel values (R/G/B or Y/U/V) will be preserved only if the `--exact` option is used..\n- `-m`, `--method`: Set the compression method. The value can be `0` (fastest), `1` (default), `2` (slowest), or `3` (best quality). For example, `--method=2`.\n- `-f`, `--filter`: Set the filter strength. The value can be between 0 and 100, with 0 being no filtering and 100 being maximum filtering. For example, `--filter=50`.\n- `-s`, `--size`: Set the target size for the output image. The value should be in bytes. For example, `--size=500000`.\n\nFor a complete list of parameters and their descriptions, please refer to the [cwebp documentation](https://developers.google.com/speed/webp/docs/cwebp).\n\n## Supported architectures\n\nThe package provides cwebp binaries for the following architectures:\n- windows-x64,\n- macos-x64,\n- macos-arm64,\n- linux-x64,\n- linux-arm64.\n\nNote: You can still use the package on other architectures with cwebp from your `$PATH`.\n\n## Learn more\n- [Asset transformers in Flutter](https://docs.flutter.dev/ui/assets/asset-transformation)\n\n---\n\n\u003cp align=\"center\"\u003e\n   \u003ca href=\"https://leancode.co/?utm_source=readme\u0026utm_medium=bloc_lens_package\"\u003e\n      \u003cimg alt=\"LeanCode\" src=\"https://leancodepublic.blob.core.windows.net/public/wide.png\" width=\"300\"/\u003e\n   \u003c/a\u003e\n   \u003cp align=\"center\"\u003e\n   Built with ☕️ by \u003ca href=\"https://leancode.co/?utm_source=readme\u0026utm_medium=bloc_lens_package\"\u003eLeanCode\u003c/a\u003e\n   \u003c/p\u003e\n\u003c/p\u003e\n\n[pub-badge]: https://img.shields.io/pub/v/webp\n[pub-badge-link]: https://pub.dev/packages/webp\n[build-badge]: https://img.shields.io/github/actions/workflow/status/leancodepl/flutter_webp/check.yml\n[build-badge-link]: https://github.com/leancodepl/flutter_webp/actions/workflows/check.yml","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleancodepl%2Fflutter_webp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleancodepl%2Fflutter_webp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleancodepl%2Fflutter_webp/lists"}