https://github.com/reggi/image_to_json
🎆🔐 Convert an image (or folder of images) into a json file uses base64
https://github.com/reggi/image_to_json
base64 deno image-processing json
Last synced: 2 months ago
JSON representation
🎆🔐 Convert an image (or folder of images) into a json file uses base64
- Host: GitHub
- URL: https://github.com/reggi/image_to_json
- Owner: reggi
- Created: 2023-05-16T01:03:35.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-17T00:43:25.000Z (about 3 years ago)
- Last Synced: 2025-03-27T22:43:11.328Z (about 1 year ago)
- Topics: base64, deno, image-processing, json
- Language: TypeScript
- Homepage: https://deno.land/x/image_to_json
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Image to JSON
> 🎆🔐 Convert an image (or folder of images) into a json file uses base64
It 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 `
` tag and set the `src` to the base64 string in the JSON file.
```bash
deno run --allow-read --allow-write ./cmd.ts []
```
Script is available `https://raw.githubusercontent.com/reggi/image-to-json/main/cmd.ts`.
Requires `--allow-read --allow-write`.
```bash
deno run --allow-read --allow-write https://raw.githubusercontent.com/reggi/image-to-json/main/cmd.ts /Users/thomasreggi/Desktop/download.jpg data.json
```