# twotwothree
**Converts 2D images into 3D-looking, stylized shaded images (anime / cel-shaded presets).**
---
## Overview
`twotwothree` is a small Rust command-line tool that analyzes an input image to compute a depth map, normals, edges, and ambient occlusion, then applies stylized shading to produce a 3D-looking output image. It ships with an **anime** preset for quick stylized results and also exposes parameters to tune depth and shading.
Built with: **Rust**, `image`, `nalgebra`, `clap`, `anyhow`.
---
## Quickstart
Build (release recommended):
```bash
cargo build --release
```
Run CLI (example):
```bash
cargo run --release -- input.png output.png
```
After a successful run you'll see:
> Saved: ./out/output.png
### Web Server & UI
Run the HTTP server:
```bash
cargo run --bin server --release
```
Then open **http://localhost:3000/demos/223/** in your browser:
- **Upload**: Convert images with adjustable anime preset, depth scale, and gamma
- **Gallery**: Browse publicly shared conversions
- **Contact**: Find contact info and GitHub link
- **Dark Mode**: Toggle light/dark theme (persisted in localStorage)
---
## Usage
Basic CLI:
```text
Usage: twotwothree