{"id":18547045,"url":"https://github.com/andormade/img2teletext","last_synced_at":"2025-04-09T20:31:09.888Z","repository":{"id":51066446,"uuid":"59145941","full_name":"andormade/img2teletext","owner":"andormade","description":"Converts images to teletext 🖼️ ➡️ 📺","archived":false,"fork":false,"pushed_at":"2023-01-06T08:03:27.000Z","size":1187,"stargazers_count":9,"open_issues_count":5,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T20:12:02.390Z","etag":null,"topics":["nodejs","teletext"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/andormade.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":"2016-05-18T19:41:26.000Z","updated_at":"2024-08-19T01:04:19.000Z","dependencies_parsed_at":"2023-02-05T16:31:09.062Z","dependency_job_id":null,"html_url":"https://github.com/andormade/img2teletext","commit_stats":null,"previous_names":["andormade/png2teletext"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andormade%2Fimg2teletext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andormade%2Fimg2teletext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andormade%2Fimg2teletext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andormade%2Fimg2teletext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andormade","download_url":"https://codeload.github.com/andormade/img2teletext/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248107264,"owners_count":21048888,"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":["nodejs","teletext"],"created_at":"2024-11-06T20:27:54.946Z","updated_at":"2025-04-09T20:31:09.549Z","avatar_url":"https://github.com/andormade.png","language":"JavaScript","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 v8 or older (It probably works with older versions as well, but I haven't tested it on anything older than v8.9.0.)\n- npm v5 or older (It comes with node.)\n\n## Installation\n\nThis module is distributed via both npm and yarn.\n\n    $ npm install img2teletext --g\n\n## Command line example\n\n    $ img2teletext ./test/test.png --out teletextData.bin\n\n## Using it as a Node.js library\n\n    const img2teletext = require('img2teletext');\n    const { PNG } = require('pngjs');\n    const fs = require('fs');\n\n    const data = fs.readFileSync('./test/test.png');\n\tconst png = PNG.sync.read(data);\n\tconst teletextData = img2teletext(png.data, png.width);\n\n    console.log(teletextData);\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%2Fandormade%2Fimg2teletext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandormade%2Fimg2teletext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandormade%2Fimg2teletext/lists"}