{"id":25894625,"url":"https://github.com/Le0Developer/vqoi","last_synced_at":"2025-03-02T22:02:21.089Z","repository":{"id":117512450,"uuid":"476862538","full_name":"Le0Developer/vqoi","owner":"Le0Developer","description":"V: QOI - The \"Quite OK Image\" format for fast, lossless image compression","archived":false,"fork":false,"pushed_at":"2023-07-18T19:00:07.000Z","size":16,"stargazers_count":12,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-18T08:45:19.976Z","etag":null,"topics":["qoi","v","vlang"],"latest_commit_sha":null,"homepage":"","language":"V","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Le0Developer.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-04-01T20:39:36.000Z","updated_at":"2024-12-12T05:42:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"e9311cd4-db11-4303-ae7e-7d229c775dc1","html_url":"https://github.com/Le0Developer/vqoi","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/Le0Developer%2Fvqoi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Le0Developer%2Fvqoi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Le0Developer%2Fvqoi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Le0Developer%2Fvqoi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Le0Developer","download_url":"https://codeload.github.com/Le0Developer/vqoi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241577073,"owners_count":19984941,"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":["qoi","v","vlang"],"created_at":"2025-03-02T22:01:50.810Z","updated_at":"2025-03-02T22:02:21.082Z","avatar_url":"https://github.com/Le0Developer.png","language":"V","funding_links":[],"categories":["Recently Updated","Libraries"],"sub_categories":["[Feb 28, 2025](/content/2025/02/28/README.md)","Graphics"],"readme":"\n# vqoi\n\n[QOI](https://qoiformat.org/) imlementation in pure V.\n\n\u003e QOI is fast. It losslessy compresses images to a similar size of PNG, while offering 20x-50x faster encoding and 3x-4x faster decoding.\n\u003e \n\u003e QOI is simple. The reference en-/decoder fits in about 300 lines of C. The file format specification is a single page PDF.\n\n## Usage\n\n```v\nimport vqoi\nimport os\n\nfn main() {\n\twidth := 500\n\theight := 400\n\trgba := [][4]u8{len: width * height, init: [u8(255), 0, 0, 255]!}\n\tmetadata := vqoi.ImageMetadata{u32(width), u32(height), .rgba, .srgb}\n\timage := vqoi.Image{rgba, metadata}\n\tdata := vqoi.encode(image)\n\tos.write_file('hello.qoi', data.bytestr()) !\n\n\tdecoded_image := vqoi.decode(data) !\n\tassert decoded_image == image\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLe0Developer%2Fvqoi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLe0Developer%2Fvqoi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLe0Developer%2Fvqoi/lists"}