{"id":29649661,"url":"https://github.com/andorthehood/img2teletext","last_synced_at":"2026-02-19T13:01:58.192Z","repository":{"id":51066446,"uuid":"59145941","full_name":"andorthehood/img2teletext","owner":"andorthehood","description":"Converts images to teletext 🖼️ ➡️ 📺","archived":false,"fork":false,"pushed_at":"2025-08-16T10:17:47.000Z","size":702,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-19T14:58:25.292Z","etag":null,"topics":["nodejs","teletext"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/andorthehood.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,"zenodo":null}},"created_at":"2016-05-18T19:41:26.000Z","updated_at":"2025-08-16T10:16:48.000Z","dependencies_parsed_at":"2025-08-19T13:02:46.318Z","dependency_job_id":"5e3a8431-215c-40ad-bf32-67bd99266ce5","html_url":"https://github.com/andorthehood/img2teletext","commit_stats":null,"previous_names":["andormade/png2teletext","andorthehood/img2teletext","andormade/img2teletext","hngrhorace/png2teletext"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/andorthehood/img2teletext","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andorthehood%2Fimg2teletext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andorthehood%2Fimg2teletext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andorthehood%2Fimg2teletext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andorthehood%2Fimg2teletext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andorthehood","download_url":"https://codeload.github.com/andorthehood/img2teletext/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andorthehood%2Fimg2teletext/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29614591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T10:52:55.328Z","status":"ssl_error","status_checked_at":"2026-02-19T10:52:26.323Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["nodejs","teletext"],"created_at":"2025-07-22T04:07:47.058Z","updated_at":"2026-02-19T13:01:58.188Z","avatar_url":"https://github.com/andorthehood.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# img2teletext\n\nThis is a CLI application for converting images to teletext level 1 compatible data. Starting from the upper leftmost, the algorithm goes by 2x3 blocks of pixels, and translates them to teletext mosaic charachters. It can also be used as a Node.js library.\n\n![poes]\n\n[poes]: poes.gif\n\nIt handles images of any dimensions, they don't have to be within the constraints of a standard teletext page.\n\n## Requirements\n\n- Node.js v14 or newer (recommended: v18 or newer)\n- npm v6 or newer (comes with Node.js)\n\n## Installation\n\nThis module is distributed via npm.\n\n```bash\n$ npm install -g img2teletext\n```\n\n## Command Line Usage\n\n### Basic Usage\n\n```bash\n$ img2teletext \u003cimage-file\u003e [options]\n```\n\n### Options\n\n- `-V, --version` - Output the version number\n- `-b, --bin` - Generate binary output (default)\n- `-e, --edittf` - Generate edit.tf URL for online teletext editor\n- `-z, --zxnet` - Generate ZXNet URL for online teletext editor\n- `--base64` - Generate base64 encoded output\n- `-j, --json` - Generate JSON array output\n- `--hash` - Generate teletext hash for edit.tf and zxnet compatibility\n- `-h, --help` - Display help information\n\n### Examples\n\n```bash\n# Convert image to binary teletext data (default output)\n$ img2teletext image.png\n\n# Generate a JSON array of teletext character codes\n$ img2teletext image.png --json\n\n# Generate a shareable edit.tf URL\n$ img2teletext image.png --edittf\n\n# Generate a shareable ZXNet URL\n$ img2teletext image.png --zxnet\n\n# Generate base64 encoded data\n$ img2teletext image.png --base64\n\n# Generate teletext hash for compatibility\n$ img2teletext image.png --hash\n```\n\n### Supported Image Formats\n\n- PNG (`.png`)\n- JPEG (`.jpg`, `.jpeg`)\n\n## Using it as a Node.js library\n\n### JavaScript (ES5/CommonJS)\n```javascript\nconst img2teletext = require('img2teletext').default;\nconst { PNG } = require('pngjs');\nconst fs = require('fs');\n\nconst data = fs.readFileSync('./test/test.png');\nconst png = PNG.sync.read(data);\nconst teletextData = img2teletext(png.data, png.width);\n\nconsole.log(teletextData);\n```\n\n### TypeScript\n```typescript\nimport img2teletext from 'img2teletext';\nimport { PNG } from 'pngjs';\nimport fs from 'fs';\n\nconst data = fs.readFileSync('./test/test.png');\nconst png = PNG.sync.read(data);\nconst teletextData: Uint8Array = img2teletext(png.data, png.width);\n\nconsole.log(teletextData);\n```\n\n## Development\n\nThis project is written in TypeScript. To build the project:\n\n```bash\nnpm install\nnpm run build\n```\n\nTo run tests:\n\n```bash\nnpm test\n```\n\nTo watch for changes during development:\n\n```bash\nnpm run dev\n```\n\nThis code is released under the MIT license, feel free to do whatever you want with it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandorthehood%2Fimg2teletext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandorthehood%2Fimg2teletext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandorthehood%2Fimg2teletext/lists"}