{"id":15382934,"url":"https://github.com/reggi/image_to_json","last_synced_at":"2026-04-13T22:33:42.003Z","repository":{"id":165780745,"uuid":"641187985","full_name":"reggi/image_to_json","owner":"reggi","description":"🎆🔐 Convert an image (or folder of images) into a json file uses base64","archived":false,"fork":false,"pushed_at":"2023-05-17T00:43:25.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T22:43:11.328Z","etag":null,"topics":["base64","deno","image-processing","json"],"latest_commit_sha":null,"homepage":"https://deno.land/x/image_to_json","language":"TypeScript","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/reggi.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":"2023-05-16T01:03:35.000Z","updated_at":"2023-07-05T00:22:13.000Z","dependencies_parsed_at":"2023-06-03T03:30:39.044Z","dependency_job_id":null,"html_url":"https://github.com/reggi/image_to_json","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"548682e158c6c71c0ca62b1760a178fd0f8972c4"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/reggi/image_to_json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reggi%2Fimage_to_json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reggi%2Fimage_to_json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reggi%2Fimage_to_json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reggi%2Fimage_to_json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reggi","download_url":"https://codeload.github.com/reggi/image_to_json/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reggi%2Fimage_to_json/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31774028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"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":["base64","deno","image-processing","json"],"created_at":"2024-10-01T14:34:45.442Z","updated_at":"2026-04-13T22:33:41.985Z","avatar_url":"https://github.com/reggi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image to JSON\n\n\u003e 🎆🔐 Convert an image (or folder of images) into a json file uses base64 \n\nIt is nice to be able to easily save a JSON file and use the Deno module import to add images to a static site without hosting or uploading the images themselves. I am not sure how I feel about hosting very large images like this and serving them through the page. I have only tested it with small thumbnail and profile images. I have been using GitHub Gist to host JSON files and then including them into projects using Deno Deploy. All you need to do is use an `\u003cimg\u003e` tag and set the `src` to the base64 string in the JSON file.\n\n```bash\ndeno run --allow-read --allow-write ./cmd.ts \u003cimageOrDirectory\u003e [\u003cjsonFile\u003e]\n```\n\nScript is available `https://raw.githubusercontent.com/reggi/image-to-json/main/cmd.ts`.\nRequires `--allow-read --allow-write`.\n\n```bash\ndeno run --allow-read --allow-write https://raw.githubusercontent.com/reggi/image-to-json/main/cmd.ts /Users/thomasreggi/Desktop/download.jpg data.json\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freggi%2Fimage_to_json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freggi%2Fimage_to_json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freggi%2Fimage_to_json/lists"}