{"id":19045281,"url":"https://github.com/julienc91/vtf2img","last_synced_at":"2026-02-27T10:11:31.446Z","repository":{"id":62587919,"uuid":"263307149","full_name":"julienc91/vtf2img","owner":"julienc91","description":"A Python library to convert Valve Texture Format (VTF) files to images","archived":false,"fork":false,"pushed_at":"2020-05-12T12:57:10.000Z","size":9,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-09-22T23:43:33.770Z","etag":null,"topics":["counter-strike-global-offensive","csgo","hacktoberfest","source-engine","texture","valve","valve-data-format","vtf"],"latest_commit_sha":null,"homepage":"","language":"Python","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/julienc91.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}},"created_at":"2020-05-12T10:37:29.000Z","updated_at":"2025-09-19T06:31:36.000Z","dependencies_parsed_at":"2022-11-03T17:01:27.732Z","dependency_job_id":null,"html_url":"https://github.com/julienc91/vtf2img","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/julienc91/vtf2img","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julienc91%2Fvtf2img","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julienc91%2Fvtf2img/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julienc91%2Fvtf2img/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julienc91%2Fvtf2img/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/julienc91","download_url":"https://codeload.github.com/julienc91/vtf2img/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julienc91%2Fvtf2img/sbom","scorecard":{"id":542091,"data":{"date":"2025-08-11","repo":{"name":"github.com/julienc91/vtf2img","commit":"6db0178d69b7b141279078cb3576d4d1f79ad567"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/2 approved changesets -- score normalized to 0","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":"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":"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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:0","Info: FSF or OSI recognized license: MIT License: LICENSE: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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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"}}]},"last_synced_at":"2025-08-20T08:27:33.329Z","repository_id":62587919,"created_at":"2025-08-20T08:27:33.329Z","updated_at":"2025-08-20T08:27:33.329Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29890760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T09:48:51.284Z","status":"ssl_error","status_checked_at":"2026-02-27T09:48:43.992Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["counter-strike-global-offensive","csgo","hacktoberfest","source-engine","texture","valve","valve-data-format","vtf"],"created_at":"2024-11-08T22:49:37.965Z","updated_at":"2026-02-27T10:11:31.425Z","avatar_url":"https://github.com/julienc91.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vtf2img\n\nA Python library to convert [Valve Texture Format (VTF)](https://developer.valvesoftware.com/wiki/Valve_Texture_Format) files to images.\n\n\n## Installation\n\n### With pip\n\n```\n$ pip install vtf2img\n```\n\n### From source\n\n```\n$ git clone https://github.com/julienc91/vtf2img\n$ cd vtf2img\n$ python setup.py install\n```\n\n\n## QuickStart\n\n### As a library\n\n```python\nfrom vtf2img import Parser\n\n\nvtf_file = \"materials/models/weapons/customization/paints/custom/workshop/ak47_asiimov.vtf\"\n\nparser = Parser(vtf_file)\nheader = parser.header\n\nprint(f\"VTF version: {header.version}, Image size: {header.width}x{header.height}\")\n# VTF version: 7.5, Image size: 2048x2048\n\nimage = parser.get_image()\n\nimage.show()\nimage.save(\"ak47_asiimov.png\")\n```\n\nThe result of `get_image` is an instance of [Pillow's `Image` class](https://pillow.readthedocs.io/en/stable/reference/Image.html#the-image-class),\nwhich allows [exporting](https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.save) in many different formats (PNG, JPG, BMP, ...).\n\n\n### As a CLI command\n\nIf you installed the package as instructed in the previous section, a `vtf2img` command should\nbe available.\n\n```\n$ vtf2img dragon_awp.wtf awp_dragon_lore.png\n```\n\nOtherwise, you can execute the package's `__main__.py` file with:\n\n```\n$ python -m vtf2img dragon_awp.wtf awp_dragon_lore.png\n```\n\n\n## Limitations\n\n* many image formats supported by the VTF format are not (yet?) supported by this program (see the section below)\n* this program only considers the hi-res image contained in the VTF file\n* all the flags that might have been set by the VTF's creator are purely ignored\n\n## VTF compatibility\n\nWorks with VTF version 7.2+.\n\nCompatibility of image formats:\n\n| Format            | Supported |\n|-------------------|:---------:|\n| A8                | ✗         |\n| ABGR8888          | ✓         |\n| ARGB8888          | ✓         |\n| BGR565            | ✗         |\n| BGR888            | ✓         |\n| BGR888_BLUESCREEN | ✗         |\n| BGRA4444          | ✗         |\n| BGRA5551          | ✗         |\n| BGRA8888          | ✓         |\n| BGRX5551          | ✗         |\n| BGRX8888          | ✗         |\n| DXT1              | ✓         |\n| DXT1_ONEBITALPHA  | ✗         |\n| DXT3              | ✗         |\n| DXT5              | ✓         |\n| I8                | ✗         |\n| IA88              | ✗         |\n| P8                | ✗         |\n| RGB565            | ✗         |\n| RGB888            | ✓         |\n| RGB888_BLUESCREEN | ✗         |\n| RGBA16161616      | ✗         |\n| RGBA16161616F     | ✗         |\n| RGBA8888          | ✓         |\n| UV88              | ✗         |\n| UVLX8888          | ✗         |\n| UVWQ8888          | ✗         |\n\nMost VTF Files are using either DXT1 or DXT5.\n\n_Note:_ DXT1 and DXT5 decoding algorithms were adapted from [Harry Jeffery](https://github.com/eXeC64/)'s implementation\non [vtf2png](https://github.com/eXeC64/vtf2png).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulienc91%2Fvtf2img","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulienc91%2Fvtf2img","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulienc91%2Fvtf2img/lists"}