{"id":16234436,"url":"https://github.com/alexanderprod/decode-thermal-jpeg-rust","last_synced_at":"2025-09-07T01:08:04.336Z","repository":{"id":242544599,"uuid":"809847856","full_name":"AlexanderProd/decode-thermal-jpeg-rust","owner":"AlexanderProd","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-03T15:48:07.000Z","size":202,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T05:15:24.792Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexanderProd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-06-03T15:04:01.000Z","updated_at":"2024-06-03T15:48:10.000Z","dependencies_parsed_at":"2024-06-03T17:42:34.793Z","dependency_job_id":"bf3d1269-129d-4212-9056-ff423ab236f3","html_url":"https://github.com/AlexanderProd/decode-thermal-jpeg-rust","commit_stats":null,"previous_names":["alexanderprod/decode-thermal-jpeg-rust"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderProd%2Fdecode-thermal-jpeg-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderProd%2Fdecode-thermal-jpeg-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderProd%2Fdecode-thermal-jpeg-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderProd%2Fdecode-thermal-jpeg-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexanderProd","download_url":"https://codeload.github.com/AlexanderProd/decode-thermal-jpeg-rust/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247801170,"owners_count":20998331,"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-10T13:16:02.428Z","updated_at":"2025-04-08T07:56:51.683Z","avatar_url":"https://github.com/AlexanderProd.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Thermal JPEG Decoding Comparison: Python vs Rust\n\nThis repository contains two scripts, one in Python and one in Rust, that demonstrate the decoding the `exiftool_output.bin` file. The binary has been retrieved from the `exiftool` command line tool `exiftool -b -RawThermalImage`.\n\n## Python Script\n\n### How to run\n\n```bash\npython3 -m pip install -r requirements.txt\npython3 main.py\n```\n\nThe Python script uses the `decode` function from the `libjpeg` package to decode the binary file.\n\nThe script successfully prints the decoded jpeg file content and its shape (1024x768).\n\n## Rust Script\n\n### How to run\n\n```bash\ncargo run\n```\n\nThe Rust script uses the `zune-jpeg` crate to attempt to decode the binary file.\n\nWhile guessing the image format using the `guess_format` function from the `image` crate works, the `decode` function from the `zune-jpeg` crate fails to decode the binary file and returns:\n\n```\nError decoding SOF Marker, Number of components cannot be zero.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderprod%2Fdecode-thermal-jpeg-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexanderprod%2Fdecode-thermal-jpeg-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderprod%2Fdecode-thermal-jpeg-rust/lists"}