{"id":30592984,"url":"https://github.com/embedded-graphics/tinytga","last_synced_at":"2025-08-29T18:04:10.555Z","repository":{"id":42567408,"uuid":"309634909","full_name":"embedded-graphics/tinytga","owner":"embedded-graphics","description":"A no_std TGA library for embedded applications.","archived":false,"fork":false,"pushed_at":"2025-06-26T15:58:50.000Z","size":212,"stargazers_count":7,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-27T23:43:27.596Z","etag":null,"topics":["embedded-graphics","hacktoberfest","no-std","tga"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/tinytga","language":"Rust","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/embedded-graphics.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE-APACHE","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,"zenodo":null},"funding":{"github":"jamwaffles","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-11-03T09:25:37.000Z","updated_at":"2025-06-26T15:58:54.000Z","dependencies_parsed_at":"2025-06-26T16:31:03.496Z","dependency_job_id":"1196d042-4475-44ea-9281-d6bc557989ca","html_url":"https://github.com/embedded-graphics/tinytga","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/embedded-graphics/tinytga","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embedded-graphics%2Ftinytga","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embedded-graphics%2Ftinytga/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embedded-graphics%2Ftinytga/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embedded-graphics%2Ftinytga/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/embedded-graphics","download_url":"https://codeload.github.com/embedded-graphics/tinytga/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embedded-graphics%2Ftinytga/sbom","scorecard":{"id":374679,"data":{"date":"2025-08-11","repo":{"name":"github.com/embedded-graphics/tinytga","commit":"906afc782947c5d5bc6950c8cd3854be73e9320e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.6,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":7,"reason":"Found 17/24 approved changesets -- score normalized to 7","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":1,"reason":"2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/embedded-graphics/tinytga/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/embedded-graphics/tinytga/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/embedded-graphics/tinytga/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/embedded-graphics/tinytga/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/embedded-graphics/tinytga/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/embedded-graphics/tinytga/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/embedded-graphics/tinytga/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/embedded-graphics/tinytga/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/embedded-graphics/tinytga/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/embedded-graphics/tinytga/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/embedded-graphics/tinytga/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/embedded-graphics/tinytga/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/embedded-graphics/tinytga/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/embedded-graphics/tinytga/ci.yml/master?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   8 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE-APACHE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE-APACHE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 19 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T13:58:00.459Z","repository_id":42567408,"created_at":"2025-08-18T13:58:00.459Z","updated_at":"2025-08-18T13:58:00.459Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272734612,"owners_count":24984277,"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","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["embedded-graphics","hacktoberfest","no-std","tga"],"created_at":"2025-08-29T18:03:37.521Z","updated_at":"2025-08-29T18:04:10.541Z","avatar_url":"https://github.com/embedded-graphics.png","language":"Rust","funding_links":["https://github.com/sponsors/jamwaffles"],"categories":[],"sub_categories":[],"readme":"# TinyTGA\n\n[![CI Status](https://github.com/embedded-graphics/tinytga/actions/workflows/ci.yml/badge.svg)](https://github.com/embedded-graphics/tinytga/actions/workflows/ci.yml)\n[![Crates.io](https://img.shields.io/crates/v/tinytga.svg)](https://crates.io/crates/tinytga)\n[![Docs.rs](https://docs.rs/tinytga/badge.svg)](https://docs.rs/tinytga)\n[![embedded-graphics on Matrix](https://img.shields.io/matrix/rust-embedded-graphics:matrix.org)](https://matrix.to/#/#rust-embedded-graphics:matrix.org)\n\n## [Documentation](https://docs.rs/tinytga)\n\nA small TGA parser designed for use with [embedded-graphics] targeting no-std environments but\nusable anywhere. Beyond parsing the image header, no other allocations are made.\n\ntinytga provides two methods of accessing the pixel data inside a TGA file. The most convenient\nway is to use a color type provided by [embedded-graphics] to define the format stored inside\nthe TGA file. But it is also possible to directly access the raw pixel representation instead.\n\n## Examples\n\n### Using `Tga` to draw an image\n\nThis example demonstrates how a TGA image can be drawn to a [embedded-graphics] draw target.\n\n```rust\nuse embedded_graphics::{image::Image, pixelcolor::Rgb888, prelude::*};\nuse tinytga::Tga;\n\n// Include an image from a local path as bytes\nlet data = include_bytes!(\"../tests/chessboard_4px_rle.tga\");\n\nlet tga: Tga\u003cRgb888\u003e = Tga::from_slice(data).unwrap();\n\nlet image = Image::new(\u0026tga, Point::zero());\n\nimage.draw(\u0026mut display)?;\n```\n\n### Accessing pixels using an embedded-graphics color type\n\nIf [embedded-graphics] is not used to draw the TGA image, the color types provided by\n[embedded-graphics] can still be used to access the pixel data using the\n`pixels` method.\n\n```rust\nuse embedded_graphics::{prelude::*, pixelcolor::Rgb888};\nuse tinytga::Tga;\n\n// Include an image from a local path as bytes\nlet data = include_bytes!(\"../tests/chessboard_4px_rle.tga\");\n\n// Create a TGA instance from a byte slice.\n// The color type is set by defining the type of the `img` variable.\nlet img: Tga\u003cRgb888\u003e = Tga::from_slice(data).unwrap();\n\n// Check the size of the image.\nassert_eq!(img.size(), Size::new(4, 4));\n\n// Collect pixels into a vector.\nlet pixels: Vec\u003c_\u003e = img.pixels().collect();\n```\n\n### Accessing raw pixel data\n\nIf [embedded-graphics] is not used in the target application, the raw image data can be\naccessed with the `pixels` method on\n`RawTga`. The returned iterator produces a `u32` for each pixel value.\n\n```rust\nuse embedded_graphics::{prelude::*, pixelcolor::Rgb888};\nuse tinytga::{Bpp, Compression, DataType, ImageOrigin, RawPixel, RawTga, TgaHeader};\n\n// Include an image from a local path as bytes.\nlet data = include_bytes!(\"../tests/chessboard_4px_rle.tga\");\n\n// Create a TGA instance from a byte slice.\nlet img = RawTga::from_slice(data).unwrap();\n\n// Take a look at the raw image header.\nassert_eq!(\n    img.header(),\n    TgaHeader {\n        id_len: 0,\n        has_color_map: false,\n        data_type: DataType::TrueColor,\n        compression: Compression::Rle,\n        color_map_start: 0,\n        color_map_len: 0,\n        color_map_depth: None,\n        x_origin: 0,\n        y_origin: 4,\n        width: 4,\n        height: 4,\n        pixel_depth: Bpp::Bits24,\n        image_origin: ImageOrigin::TopLeft,\n        alpha_channel_depth: 0,\n    }\n);\n\n// Collect raw pixels into a vector.\nlet pixels: Vec\u003c_\u003e = img.pixels().collect();\n```\n\n## Embedded-graphics drawing performance\n\n`tinytga` uses different code paths to draw images with different `ImageOrigin`s.\nThe performance difference between the origins will depend on the display driver, but using\nimages with the origin at the top left corner will generally result in the best performance.\n\n## Minimum supported Rust version\n\nThe minimum supported Rust version for tinytga is `1.81` or greater.\nEnsure you have the correct version of Rust installed, preferably through \u003chttps://rustup.rs\u003e.\n\n[embedded-graphics]: https://docs.rs/embedded-graphics\n\n## License\n\nLicensed under either of\n\n- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the\nwork by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any\nadditional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembedded-graphics%2Ftinytga","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fembedded-graphics%2Ftinytga","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembedded-graphics%2Ftinytga/lists"}