{"id":20333338,"url":"https://github.com/daneelsan/wolfram-qoi","last_synced_at":"2025-06-12T23:32:53.703Z","repository":{"id":133848831,"uuid":"442953083","full_name":"daneelsan/wolfram-qoi","owner":"daneelsan","description":"A Wolfram Language paclet for manipulating the Quite OK Image (QOI) format","archived":false,"fork":false,"pushed_at":"2021-12-30T14:26:21.000Z","size":8913,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-14T15:52:37.083Z","etag":null,"topics":["c","encoder-decoder","image-processing","wolfram-language"],"latest_commit_sha":null,"homepage":"","language":"Mathematica","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/daneelsan.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":"2021-12-30T03:15:22.000Z","updated_at":"2022-05-03T05:23:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"266810e7-be2b-49f1-8ef0-1a37301a6add","html_url":"https://github.com/daneelsan/wolfram-qoi","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daneelsan%2Fwolfram-qoi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daneelsan%2Fwolfram-qoi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daneelsan%2Fwolfram-qoi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daneelsan%2Fwolfram-qoi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daneelsan","download_url":"https://codeload.github.com/daneelsan/wolfram-qoi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241852142,"owners_count":20030969,"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":["c","encoder-decoder","image-processing","wolfram-language"],"created_at":"2024-11-14T20:30:52.026Z","updated_at":"2025-03-04T12:45:46.665Z","avatar_url":"https://github.com/daneelsan.png","language":"Mathematica","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QOI\nA Wolfram Language paclet for manipulating the Quite OK Image (QOI) format (https://qoiformat.org/).\n\n# Installation\n\nInstall the paclet (version `1.0`) from github releases:\n```Mathematica\nPacletInstall[\"https://github.com/daneelsan/wolfram-qoi/releases/download/release/QOI-1.0.paclet\"]\n```\n\nUninstall the paclet:\n```Mathematica\nPacletUninstall[\"QOI\"]\n```\n\n# Usage\n\nLoad the QOI` package:\n```Mathematica\nNeeds[\"QOI`\"]\n```\n\nQOI symbols:\n```Mathematica\nIn[]:= Names[\"QOI`*\"]\nOut[]= {\"QOIDecode\", \"QOIEncode\"}\n```\n\nOpen the documentation of the `QOIDecode` function:\n```Mathematica\nNotebookOpen[Information[QOIDecode, \"Documentation\"][\"Local\"]]\n```\n![ref/QOIEncode](./screenshots/ref-QOIDecode.png)\n\n# Samples\n\nA few sample images come with the paclet:\n```Mathematica\nIn[]:= DirectoryQ[samplesDir = PacletObject[\"QOI\"][\"AssetLocation\", \"samples\"]];\nOut[]= True\n```\n\nUse `ReadByteArray` to import the .qoi images as `ByteArray`s:\n```Mathematica\nIn[]:= ToString[qoiByteArrays = ReadByteArray /@ FileNames[\"*.qoi\", samplesDir]]\nOut[]= \"{ByteArray[\u003c519653\u003e], ByteArray[\u003c652383\u003e], ByteArray[\u003c675251\u003e], ByteArray[\u003c16488\u003e], ByteArray[\u003c21857\u003e], ByteArray[\u003c24167\u003e]}\"\n```\n\nTest the `QOIDecode` function:\n```Mathematica\nIn[]:= ImageQ /@ QOIDecode /@ qoiByteArrays\nOut[]= {True, True, True, True, True, True}\n```\n\n# Build\n\n1. The `qoi.h` library (https://github.com/phoboslab/qoi/qoi.h) is required for building the `LibraryLink` library.\nUse the `get_qoi.sh` bash script to do this:\n```bash\n./scripts/get_qoi.sh\n```\n\n2. Build the `LibraryLink` library with the `build_library.wls` wolframscript:\n```bash\n./scripts/build_library.wls\n```\n   The library will be stored in `LibraryResources/$SystemID/`:\n```bash\n$ ls LibraryResources/Linux-x86-64\nwolfram-qoi.so\n```\n\n3. Build the `QOI` paclet using the `build_paclet.wls` wolframscript:\n```bash\n./scripts/build_paclet.wls\n```\n   The paclet will be placed under the `build` directory:\n```bash\n$ ls build/*.paclet\nbuild/QOI-1.0.paclet\n```\n\n4. Install the built paclet:\n```Mathematica\nPacletInstall[\".../build/QOI-1.0.paclet\"]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaneelsan%2Fwolfram-qoi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaneelsan%2Fwolfram-qoi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaneelsan%2Fwolfram-qoi/lists"}