{"id":16774641,"url":"https://github.com/salarcode/dotavifconvertor","last_synced_at":"2026-01-28T11:33:57.542Z","repository":{"id":72174680,"uuid":"530142920","full_name":"salarcode/DotAvifConvertor","owner":"salarcode","description":"An avif image convertor for .net. Uses cavif to do that.","archived":false,"fork":false,"pushed_at":"2024-11-23T12:38:14.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T05:16:18.874Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/salarcode.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":"2022-08-29T09:05:26.000Z","updated_at":"2025-04-09T05:37:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"44be5e08-6d16-46fe-aa99-a16b43110601","html_url":"https://github.com/salarcode/DotAvifConvertor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salarcode%2FDotAvifConvertor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salarcode%2FDotAvifConvertor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salarcode%2FDotAvifConvertor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salarcode%2FDotAvifConvertor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/salarcode","download_url":"https://codeload.github.com/salarcode/DotAvifConvertor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249266653,"owners_count":21240792,"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":[],"created_at":"2024-10-13T06:49:45.211Z","updated_at":"2026-01-28T11:33:57.513Z","avatar_url":"https://github.com/salarcode.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dot Avif Image Convertor\nAn `.avif` image convertor for .net. Uses [cavif](https://github.com/kornelski/cavif-rs) to do that.\n\n\n## [NuGet Package](https://www.nuget.org/packages/DotAvifConverter)\n```\nPM\u003e Install-Package DotAvifConverter\n```\n\n## Installation\n\n\n1 - First you need to download the `cavif` prebuilt files and place them next to your application.\n\u003cbr/\u003e\n[Download from here](https://github.com/kornelski/cavif-rs/releases)\n\n2 - Make sure the `cavif` files are placed correctly e.g. like this:\n\n```\n./YourApplicationHere.exe\n./YourApplicationHere.dll\n./runtimes/win/cavif.exe\n./runtimes/mac/cavif\n./runtimes/linux-generic/cavif\n```\n\nYou can change the root location of `runtimes` using `AvifConverter.SetBinaryRoot` method.\n\n3 - You can call the `EncodeImage` method now.\n\n## How to use\n\nAfter installing the package, you only need to call the `AvifConverter.EncodeImage` method.\n\n**Simple configurations:**\n```csharp\nawait AvifConverter.EncodeImage(\"source.jpeg\");\n```\nThis will generate `source.avif` next to the source.\n\n**Setting the output target**\n```csharp\nawait AvifConverter.EncodeImage(\"source.jpeg\", \"output.avif\");\n```\n\n**More options**\n\nUsing `AvifConverterOptions` you can customize the configuration.\n\n```csharp\nawait AvifConverter.EncodeImage(\"source.jpeg\", \"output.avif\", new AvifConverterOptions\n{\n\tSpeed = 6,\n\tQuality = 80\n});\n```\n\n**Properties of `AvifConverterOptions`**\nSome copies are from [cavif repo](https://github.com/kornelski/cavif-rs):\n\n| Property | Description |\n| -------- | -------- |\n| Quality     | Quality from 1 (worst) to 100 (best), the default value is 80. The numbers have different meaning than JPEG's quality scale. Beware when comparing codecs. There is no lossless compression support.     |\n| Speed     | Encoding speed between 1 (best, but slowest) and 10 (fastest, but a blurry mess), the default value is 4. Speeds 1 and 2 are unbelievably slow, but make files ~3-5% smaller. Speeds 7 and above degrade compression significantly, and are not recommended.     |\n| Overwrite     | Replace files if there's .avif already. By default the existing files are overwritten.     |\n| DirtyAlpha     | Preserve RGB values of fully transparent pixels (not recommended). By default irrelevant color of transparent pixels is cleared to avoid wasting space.     |\n| ColorRgb     | Encode using RGB instead of YCbCr color space. Makes colors closer to lossless, but makes files larger. Use only if you need to avoid even smallest color shifts.     |\n| EmitMesage     | Should generate output message     |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalarcode%2Fdotavifconvertor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsalarcode%2Fdotavifconvertor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalarcode%2Fdotavifconvertor/lists"}