{"id":15783525,"url":"https://github.com/hagronnestad/png2table","last_synced_at":"2025-03-31T16:50:00.618Z","repository":{"id":146054743,"uuid":"145613907","full_name":"hagronnestad/png2table","owner":"hagronnestad","description":"🌍🖼️ A PoC program to convert an image to a html table tag, using td tags as pixels. Initially an experiment for bypassing image blocking in email clients. Also uses the colspan atrtribute to greatly reduce html file size for some images.","archived":false,"fork":false,"pushed_at":"2018-08-21T20:53:28.000Z","size":341,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-04T19:44:31.647Z","etag":null,"topics":["csharp","educational","fun","html","html-table","png","poc"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hagronnestad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-08-21T20:07:29.000Z","updated_at":"2019-02-05T13:46:07.000Z","dependencies_parsed_at":"2023-05-25T14:31:24.731Z","dependency_job_id":null,"html_url":"https://github.com/hagronnestad/png2table","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hagronnestad%2Fpng2table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hagronnestad%2Fpng2table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hagronnestad%2Fpng2table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hagronnestad%2Fpng2table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hagronnestad","download_url":"https://codeload.github.com/hagronnestad/png2table/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246500354,"owners_count":20787678,"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":["csharp","educational","fun","html","html-table","png","poc"],"created_at":"2024-10-04T19:42:11.001Z","updated_at":"2025-03-31T16:50:00.594Z","avatar_url":"https://github.com/hagronnestad.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# png2table\n\nA PoC program to convert an image to a html table tag, using td tags as pixels. Also uses the colspan atrtribute to greatly reduce html file size for some images. Initially an experiment for bypassing image blocking in email clients.\n\n**!! png2table is just a funny PoC application, please don't use this trick to embed images in emails. !!**\n\n## Usage\n\n```\nUsage: png2table [-nocolspan] [-st] [-noaa] [-bg html_color] image_file html_output_file\n\nOptions:\n         -nocolspan              Disables use of the colspan attribute. May increase file size substantially depending on input image.\n         -noaa                   Disables antialiasing, allows for transparent pixels.\n         -bg html_color          Background color to use when using antialiasing. Default: white.\n         -st                     Outputs a style tag for additional styling. May improve compatibility in some browsers.\n```\n\n## Examples\n\n#### Colspan disabled:\n```\n\u003e png2table.exe -nocolspan -noaa norway.png norway.html\nConverting norway.png to norway.html...\n\nOptions:\nUse colspan attribue: no\nUse antialiasing: no\nBackground color: White\nUse style tag: no\n\nInput file size: 1 kb\nOutput file size: 44010 kb  //notice the huge file size\n```\n\n![](screenshots/02-nocolspan.gif)\n\nThis gif shows norway.html loading in real time with the `-nocolspan` option.\n\n***\n\n#### Colspan enabled:\n```\n\u003e png2table.exe norway.png norway.html\nConverting norway.png to norway.html...\n\nOptions:\nUse colspan attribue: yes\nUse antialiasing: yes\nUse style tag: no\n\nInput file size: 1 kb\nOutput file size: 232 kb  //almost 99,5% reduction in file size\n```\n\n![](screenshots/01-colspan.png)\n\nThis shows the usage of the `colspan`-attribute and how efficient it is when the input image has many similar colors.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhagronnestad%2Fpng2table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhagronnestad%2Fpng2table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhagronnestad%2Fpng2table/lists"}