Web-based image (document) editor featuring React, Tailwind, and Canvas, supporting advanced background removal (Transformers.js) and both 2D and GPU-based rendering.
Parts of this project were bootstrapped using OpenAI GPT and with coding assistance from GitHub Copilot.
- Background Removal using Transformers.js.
- UI built with React and Tailwind CSS.
- Document & Image Editing: Layers, compositing, blend modes, and opacity.
- Download and Export: Save your final work as images.
Try it live: Demo link
documentSizeis the source of truth for the workspace dimensions.canvasSizeis always derived from thedocumentSizeand adapts to device or viewport.
- Canvas 2D Renderer: Handles standard drawing, text, and image layers.
- GPU Renderer: Isolated in a separate WebGL/WebGPU context for advanced effects (e.g., shaders, background removal, filters).
- The main canvas can composite the 2D and GPU outputs for final display or export.
git clone https://github.com/styledocnet/imagetoner.git
cd imagetoner
npm install
npm run devOpen http://localhost:5173 to view in your browser.
The editor is a true PWA: installable, offline-capable, and responsive. All your work is stored locally in your browser for privacy and speed, no server required.
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
Note: This is a prototype under active development. Features and interface may change.