Skip to content

OELD/ender-img2string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

ender-img2string

Client-side tools to encode images to compressed Base64 or Base65536 strings and decode them back. All processing happens locally in the browser. No data is uploaded.

Features

Encoder

  • Resize with high-quality canvas smoothing
  • Posterize to 2–256 colors
  • Floyd‑Steinberg dithering
  • AVIF / WebP / JPEG output
  • Quality and compression speed controls
  • Compression presets (Low / Medium / High)
  • Live preview and Base64 output
  • Copy to clipboard
  • Download encoded image

Decoder

  • Paste any Base64 or Base65536 string
  • Auto‑detects format (AVIF, WebP, JPEG, PNG, GIF)
  • Preview decoded image
  • Download as original format
  • Sample image for demonstration

Technical

  • Pure static HTML, CSS, JavaScript
  • Runs entirely in the browser
  • Squoosh WASM for AVIF/WebP/JPEG encoding
  • image-q for quantization and dithering

Usage

Open index.html or visit the live demo at:

https://OELD.github.io/ender-img2string

License

MIT


Sample image: Alejandro Escamilla via Unsplash

About

Client-side tools to encode images to compressed Base64 strings and decode them back. Supports AVIF, WebP, JPEG, PNG, GIF. All processing locally.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors