{"id":15805313,"url":"https://github.com/k0lb3/etcpack","last_synced_at":"2025-04-21T07:33:03.323Z","repository":{"id":57427057,"uuid":"207037614","full_name":"K0lb3/etcpack","owner":"K0lb3","description":"cythonic integration of etcpack into Pillow","archived":false,"fork":false,"pushed_at":"2023-08-20T02:05:39.000Z","size":790,"stargazers_count":2,"open_issues_count":4,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-06T02:07:45.827Z","etag":null,"topics":["codec","cython","etc","etc2","pillow","texture"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/K0lb3.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":"2019-09-07T23:37:06.000Z","updated_at":"2022-07-18T19:58:37.000Z","dependencies_parsed_at":"2024-10-26T16:21:26.234Z","dependency_job_id":null,"html_url":"https://github.com/K0lb3/etcpack","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"78848c4c113e4e28749bb0cc4dd4535bb43eb26d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/K0lb3%2Fetcpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/K0lb3%2Fetcpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/K0lb3%2Fetcpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/K0lb3%2Fetcpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/K0lb3","download_url":"https://codeload.github.com/K0lb3/etcpack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223856777,"owners_count":17214938,"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":["codec","cython","etc","etc2","pillow","texture"],"created_at":"2024-10-05T02:08:07.456Z","updated_at":"2024-11-09T17:04:18.082Z","avatar_url":"https://github.com/K0lb3.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# etcpack (for python)\nA cython wrapper for [etcpack](https://github.com/Ericsson/ETCPACK.git) that integrates etcpack into Pillow as codec.\n\nInstall via\n``python setup.py install``\n- Cython is required\n\n## usage example\n```python\nfrom PIL import Image\nimport etcpack \n#needs to be imported once in the active code, so that the codec can register itself\n\n\nraw_etc_image_data : bytes\nmode = 'RGB'/'RGBA' # depending on the ETC mode\nargs = (x, ) # x depending on the ETC mode\nimg = Image.frombytes(mode, size, raw_etc_image_data, 'etc2', args)\n```\n\n## codec table\n|ETC mode | arg | mode |\n|---|---|---|\n| ETC1_RGB_NO_MIPMAPS | 0 | RGB |\n| ETC2PACKAGE_RGB_NO_MIPMAPS | 1 | RGB |\n| ETC2PACKAGE_RGBA_NO_MIPMAPS_OLD | 2 | RGBA | \n| ETC2PACKAGE_RGBA_NO_MIPMAPS | 3 | RGBA |\n| ETC2PACKAGE_RGBA1_NO_MIPMAPS | 4 | RGBA |\n| ETC2PACKAGE_R_NO_MIPMAPS | 5 | R or A |\n| ETC2PACKAGE_RG_NO_MIPMAPS | 6 | RGA | \n| ETC2PACKAGE_R_SIGNED_NO_MIPMAPS | 7 | R or A |\n| ETC2PACKAGE_RG_SIGNED_NO_MIPMAPS | 8 | RGA |\n| ETC2PACKAGE_sRGB_NO_MIPMAPS | 9 | RGB |\n| ETC2PACKAGE_sRGBA_NO_MIPMAPS | 10 | RGBA | \n| ETC2PACKAGE_sRGBA1_NO_MIPMAPS | 11 | RGBA  |\n\n## notes\n* compression isn't implemented\n* RG is untested\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk0lb3%2Fetcpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk0lb3%2Fetcpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk0lb3%2Fetcpack/lists"}