OpenReel Video - Professional browser-based video editor. Open source CapCut alternative. 100% browser-based, no installation, no cloud uploads, no watermarks.
TypeScript
chore: remove internal plans/docs from repo, keep local only
Augustus Otu953bcedb987a
diff --git a/.github/CLAUDE_WORKFLOW.md b/.github/CLAUDE_WORKFLOW.mddeleted file mode 100644index 6997a89a..00000000--- a/.github/CLAUDE_WORKFLOW.md+++ /dev/null@@ -1,480 +0,0 @@-# Claude AI Workflow Guide--## Overview--This document explains how Claude manages the OpenReel project, reviews issues, implements fixes, and handles pull requests.-------## π Current Setup (Phase 1 - Manual with Scripts)--### How It Works--1. **Issues are created** on GitHub by contributors-2. **GitHub Action labels them** with `needs-claude-review`-3. **Augustus runs a local script** that fetches labeled issues-4. **Claude reviews in CLI session**, generates fixes, creates PRs-5. **Augustus reviews Claude's work**, approves and merges-6. **Claude closes the issue** with resolution details--### Daily Workflow--```bash-# Morning: Check for new issues-pnpm claude:review-issues--# Claude will:-# - Fetch all issues labeled 'needs-claude-review'-# - Analyze each issue-# - Generate fixes or ask for clarification-# - Create PRs with fixes-# - Post updates to GitHub--# Afternoon: Check for PRs needing review-pnpm claude:review-prs--# Claude will:-# - Review all open PRs-# - Run tests and type checking-# - Provide detailed feedback-# - Approve or request changes-```--### Scripts Location--- `scripts/claude-issue-manager.ts` - Issue review and management-- `scripts/claude-pr-reviewer.ts` - PR review automation-- `.github/workflows/label-for-claude.yml` - Auto-labels new issues-------## π§ Future Setup (Phase 2 - Automated)--### Architecture--```-GitHub Event β GitHub Webhook β Cloud Function β Claude API β GitHub Response-```--### Components--1. **GitHub App** - "Claude OpenReel Manager"- - Permissions: Read/write issues, PRs, code, checks- - Webhooks: issues, pull_request, issue_comment--2. **Cloud Function** (Vercel/Netlify/Railway)- - Receives webhook events- - Calls Claude API with context- - Posts responses back to GitHub--3. **Claude API Integration**- - Analyzes issues and generates fixes- - Reviews PR code for quality- - Runs tests and checks- - Auto-merges when safe--### Safety Guardrails--- **Auto-merge only for**: Bug fixes, docs, tests, minor improvements-- **Human review required for**: New features, breaking changes, architecture changes-- **All PRs created by Claude** are labeled `ai-generated` for transparency-- **Test suite must pass** before any merge-- **Augustus has override** on all decisions-------## π Issue Workflow--### 1. New Issue Created--**Trigger:** User opens an issue--**Claude's Response:**-```markdown-Hi! I'm Claude, the AI assistant managing this project. I've reviewed your issue.--**Issue Type:** [Bug/Feature/Question]-**Priority:** [Critical/High/Medium/Low]-**Estimated Fix Time:** [Hours/Days]--**Analysis:**-[Claude's understanding of the issue]--**Proposed Solution:**-[How Claude plans to fix it]--I'm working on a fix now. I'll create a PR shortly.------*Note: This issue is being handled by Claude AI with human oversight from Augustus.*-```--### 2. Claude Investigates--```bash-# Claude runs automatically:-1. Read relevant code files-2. Search for similar issues-3. Check tests-4. Reproduce bug if possible-5. Identify root cause-```--### 3. Claude Creates Fix PR--```markdown-# PR Title: fix: [issue description] (#123)--## Summary-Fixes #123--## Root Cause-[Explanation of what was wrong]--## Solution-[What was changed and why]--## Testing-- [x] Existing tests pass-- [x] Added new test for regression-- [x] Manually tested in browser--## Files Changed-- `path/to/file.ts` - [description]------*This PR was created by Claude AI. Human review by Augustus pending.*-```--### 4. Augustus Reviews & Merges--```bash-# Augustus checks:-- Does the fix make sense?-- Are tests comprehensive?-- Any security concerns?-- Code quality acceptable?--# If approved:-gh pr merge 123 --squash--# Claude auto-closes issue with:-"Fixed in #123 and deployed to production. Thanks for reporting!"-```-------## π PR Review Workflow--### External Contributor Opens PR--**Trigger:** New PR from community--**Claude's Auto-Review:**-```markdown-Thanks for the contribution! I've reviewed your PR.--## β Automated Checks-- [x] TypeScript compiles-- [x] Tests pass (42/42)-- [x] Code follows style guide-- [x] No security vulnerabilities detected--## π Code Review--### file.ts-**Line 45:** Consider using `useCallback` here to prevent unnecessary re-renders-**Line 67:** Great error handling!--### file2.ts-**Line 23:** This could be simplified to: `const result = data?.map(...) ?? []`--## π― Overall Assessment-**Status:** Approved β-**Recommendation:** Merge after addressing minor suggestions above--Great work! This is a clean, well-tested contribution.------*Automated review by Claude AI. Final approval by Augustus required for merge.*-```--### Augustus Final Review--```bash-# Augustus checks:-- Claude's review is accurate-- No red flags missed-- Contributor followed up on feedback--# If all good:-gh pr merge 456 --squash--# Claude thanks contributor:-"Merged! Thanks for contributing to OpenReel π"-```-------## π·οΈ Label System--### Issue Labels (Auto-Applied)--- `needs-claude-review` - New issue, Claude hasn't reviewed yet-- `claude-reviewing` - Claude is actively working on it-- `claude-needs-info` - Claude needs more information from reporter-- `ready-for-fix` - Claude analyzed, ready to implement-- `ai-generated-pr` - PR created by Claude-- `human-review-required` - Needs Augustus to review--### Priority Labels--- `priority-critical` - Breaks core functionality-- `priority-high` - Important but not blocking-- `priority-medium` - Should fix soon-- `priority-low` - Nice to have--### Type Labels--- `type-bug` - Something isn't working-- `type-feature` - New functionality-- `type-docs` - Documentation improvements-- `type-performance` - Performance optimization-- `type-security` - Security issue-------## π Metrics & Reporting--### Weekly Summary (Auto-Generated)--Claude posts a weekly summary to Discussions:--```markdown-# OpenReel Weekly Summary - Jan 13-19, 2026--## π Activity-- **Issues Reviewed:** 15-- **PRs Created:** 8-- **PRs Merged:** 12-- **Bugs Fixed:** 5-- **Features Shipped:** 2--## π Top Contributors-1. @contributor1 - 4 PRs-2. @contributor2 - 2 PRs--## π Bugs Fixed This Week-- #123 - Fix audio sync in variable speed-- #145 - Prevent memory leak in frame cache-- #167 - Fix undo/redo edge case--## β¨ New Features-- #134 - Add ripple editing-- #156 - Implement proxy workflow--## π Next Week Focus-- Finish export system (Phase 2 milestone)-- Review community PRs-- Update documentation------*Generated by Claude AI*-```-------## π Security & Safety--### What Claude CANNOT Do (Without Human Approval)--- β Merge breaking changes-- β Change security settings-- β Modify GitHub Actions workflows-- β Update dependencies (major versions)-- β Delete branches or issues-- β Change repository settings-- β Grant access to collaborators--### What Claude CAN Do (Automatically)--- β Review and label issues-- β Create PRs for bug fixes-- β Run tests and checks-- β Comment on PRs with reviews-- β Close resolved issues-- β Update documentation-- β Fix typos and formatting--### Safety Checks (Always Run)--```bash-# Before any code change:-1. pnpm typecheck # TypeScript must pass-2. pnpm test # All tests must pass-3. pnpm lint # Code style must pass-4. Security scan # No vulnerabilities--# If any fail: PR marked "needs-work", not merged-```-------## π οΈ Setup Instructions--### Phase 1: Manual Workflow (Current)--```bash-# 1. Set up GitHub CLI-gh auth login--# 2. Install dependencies-pnpm install--# 3. Add GitHub token to .env (for script access)-echo "GITHUB_TOKEN=your_token_here" >> .env.local--# 4. Run issue review-pnpm claude:review-issues--# 5. Run PR review-pnpm claude:review-prs-```--### Phase 2: Automated Workflow (Future)--**Requirements:**-- GitHub App created and installed-- Cloud function deployed (Vercel recommended)-- Anthropic API key in cloud function secrets-- Webhook configured--**Setup Steps:**-1. Create GitHub App with required permissions-2. Deploy cloud function (`/api/github-webhook`)-3. Configure webhook URL in GitHub App-4. Add secrets (ANTHROPIC_API_KEY, GITHUB_APP_KEY)-5. Test with a dummy issue-6. Monitor logs for first week-7. Gradually enable auto-merge-------## π Templates--### Issue Template (Auto-Posted by Claude)--```markdown-## Issue Analysis--**Status:** [Investigating/In Progress/Fixed]-**Priority:** [Critical/High/Medium/Low]-**Type:** [Bug/Feature/Question]--**Current Understanding:**-[What Claude understands the issue to be]--**Questions for Reporter:**-1. [Clarifying question 1]-2. [Clarifying question 2]--**Next Steps:**-- [ ] Reproduce issue locally-- [ ] Identify root cause-- [ ] Create fix PR-- [ ] Add regression test--I'll update this issue as I make progress.-```--### PR Template (Auto-Generated by Claude)--```markdown-## Description-[What this PR does]--## Related Issue-Fixes #[issue number]--## Changes Made-- [Change 1]-- [Change 2]--## Testing-- [x] All existing tests pass-- [x] Added tests for new functionality-- [x] Manually tested in browser--## Screenshots (if UI changes)-[Before/After screenshots]--## Checklist-- [x] TypeScript compiles-- [x] Code follows style guide-- [x] Documentation updated-- [x] No console.logs or debug code------*This PR was created by Claude AI*-```-------## π‘ Best Practices--### For Contributors--1. **Be specific in issues** - The more details you provide, the better Claude can help-2. **Include reproduction steps** - For bugs, include exact steps to reproduce-3. **Add screenshots/videos** - Visual aids help Claude understand UI issues-4. **Respond to Claude's questions** - Claude may need clarification-5. **Be patient** - Claude typically responds within 24 hours--### For Augustus (Human Oversight)--1. **Daily check-in** - Review Claude's PRs and issue responses-2. **Override when needed** - If Claude misunderstands, correct it-3. **Monitor metrics** - Check weekly summaries for anomalies-4. **Approve major changes** - New features need human approval-5. **Engage community** - Thank contributors, provide direction-------## π Continuous Improvement--### Feedback Loop--1. **Track Claude's accuracy** - How many PRs needed revision?-2. **User satisfaction** - Are issue reporters happy with responses?-3. **Response time** - Average time from issue to fix-4. **Code quality** - Are Claude's fixes creating new bugs?--### Monthly Review--Augustus reviews:-- Claude's performance metrics-- Community feedback-- Areas for improvement-- Adjust prompts/workflows as needed-------## π Escalation--### When Claude Needs Help--If Claude encounters:-- **Ambiguous requirements** β Labels `claude-needs-info`, asks questions-- **Complex architecture decision** β Labels `human-review-required`, tags Augustus-- **Controversial change** β Creates RFC in Discussions, waits for community input-- **Security concern** β Immediately tags Augustus, doesn't auto-merge--### Contact--- **GitHub Discussions** - General questions about Claude's role-- **GitHub Issues** - Report issues with Claude's responses-- **Email Augustus** - For urgent concerns-------**This is a living document.** As we learn and improve the workflow, this guide will be updated.diff --git a/.gitignore b/.gitignoreindex ef5de3f4..02b5ee3f 100644--- a/.gitignore+++ b/.gitignore@@ -55,5 +55,8 @@ apps/android# Local filesFEATURES_TWITTER.md.claude-tasks.md-CLAUDE.md+*-PLAN.md+*-PLAN-*.md+.playwright-mcp/+.wrangler/diff --git a/AGENTS.md b/AGENTS.mddeleted file mode 100644index 675087c6..00000000--- a/AGENTS.md+++ /dev/null@@ -1,95 +0,0 @@-# AGENTS.md--This file provides guidance to Codex (Codex.ai/code) when working with code in this repository.--## Build & Development Commands--```bash-# Development-pnpm dev # Start Vite dev server (http://localhost:5173)--# Testing-pnpm test # Run all tests in watch mode-pnpm test:run # Run tests once (CI mode)--# Build-pnpm build # Build WASM + web app for production-pnpm build:wasm # Build only WASM modules (FFT, WAV, beat detection)--# Quality-pnpm typecheck # TypeScript type checking-pnpm lint # ESLint--# Single package testing (from root)-pnpm --filter @openreel/core test:run-pnpm --filter @openreel/web test:run--#deploy app to cloudflare-pnpm deploy-```--## Architecture--### Monorepo Structure--- **`apps/web`** (`@openreel/web`) - React frontend with Vite, deployed to Cloudflare Pages-- **`apps/cloud`** - Cloudflare Workers API (Hono framework)-- **`packages/core`** (`@openreel/core`) - Core editing logic, imported by web app--### Core Package Modules (`packages/core/src/`)--| Module | Purpose |-|--------|---------|-| `video/` | WebGPU rendering, upscaling shaders, video effects |-| `audio/` | Web Audio API, effects (EQ, reverb, etc.), beat detection |-| `graphics/` | Canvas/THREE.js, shapes, SVG rendering |-| `text/` | Text rendering, 20+ text animations |-| `export/` | Video encoding via ffmpeg.wasm/MediaBunny |-| `storage/` | IndexedDB persistence, project serialization |-| `device/` | Device capabilities detection, export time estimation |-| `timeline/` | Timeline data structures, clip management |-| `actions/` | Undoable action system |-| `wasm/` | AssemblyScript modules (FFT, WAV, beat detection) |--### Web App Structure (`apps/web/src/`)--| Directory | Purpose |-|-----------|---------|-| `stores/` | Zustand state: `project-store`, `engine-store`, `timeline-store`, `ui-store` |-| `components/editor/` | Editor UI: Timeline, Preview, Inspector panels |-| `bridges/` | Coordinates between React and core engines |-| `services/` | Auto-save, keyboard shortcuts, screen recording |--### Key Design Patterns--1. **Action-based editing** - All edits dispatch actions that are undoable/redoable-2. **Engine separation** - Video, audio, graphics engines are independent singletons-3. **Immutable state** - Zustand stores with Immer for predictable updates-4. **Progressive enhancement** - WebGPU β Canvas2D fallback--### State Flow--```-User Action β Zustand Store β Action Dispatch β Core Engine β State Update β React Re-render-```--### Export Pipeline--Uses ffmpeg.wasm (multi-threaded) with WebCodecs for hardware encoding when available:-```-Timeline β Frame Rendering β VideoEncoder β ffmpeg muxing β Blob download-```--## Testing--- Framework: Vitest-- React testing: `@testing-library/react`-- Test files: `*.test.ts` or `*.test.tsx` alongside source files-- Property-based testing available via `fast-check`--## Conventions--- Commit messages: Conventional Commits (`feat:`, `fix:`, `refactor:`, `test:`, etc.)-- Branch naming: `feat/description` or `fix/description`-- TypeScript strict mode, avoid `any`-- Components: PascalCase, functions: camelCase, constants: UPPER_SNAKE_CASEdiff --git a/DEPLOYMENT.md b/DEPLOYMENT.mddeleted file mode 100644index a2a1183d..00000000--- a/DEPLOYMENT.md+++ /dev/null@@ -1,164 +0,0 @@-# OpenReel Deployment Guide--## Deploying to Cloudflare Pages--OpenReel is configured to deploy to Cloudflare Pages at `app.openreel.video`.--### Prerequisites--1. **Cloudflare Account**: You need a Cloudflare account with access to the `openreel.video` domain-2. **Wrangler CLI**: Install wrangler globally or use the local version- ```bash- pnpm install- ```--### Initial Setup--1. **Login to Cloudflare**:- ```bash- cd apps/web- npx wrangler login- ```--2. **Create Cloudflare Pages Project** (first time only):- ```bash- npx wrangler pages project create openreel- ```--3. **Configure Custom Domain** (in Cloudflare Dashboard):- - Go to Cloudflare Pages β openreel project β Custom domains- - Add `app.openreel.video` as a custom domain- - Cloudflare will automatically configure the DNS--### Deployment Commands--#### Production Deployment--Deploy to production (app.openreel.video):--```bash-# From project root-pnpm deploy--# Or from apps/web directory-pnpm build-pnpm deploy-```--#### Preview Deployment--Deploy a preview version for testing:--```bash-# From project root-pnpm deploy:preview--# Or from apps/web directory-pnpm build-pnpm deploy:preview-```--### Important Configuration--#### Required Headers--The app requires special headers for SharedArrayBuffer (used by FFmpeg.wasm):-- `Cross-Origin-Opener-Policy: same-origin`-- `Cross-Origin-Embedder-Policy: require-corp`--These are configured in `apps/web/public/_headers` and will be automatically deployed.--#### SPA Routing--The `apps/web/public/_redirects` file ensures all routes are handled by the React app:-```-/* /index.html 200-```--### Build Configuration--- **Build Command**: `tsc --noEmit && vite build`-- **Build Output**: `dist/`-- **Node Version**: >= 18.0.0--### Verifying Deployment--After deployment, verify:--1. **Access the site**: https://app.openreel.video-2. **Check headers**: Open DevTools β Network tab β Check response headers for COOP/COEP-3. **Test video export**: Try exporting a video to ensure WebCodecs and FFmpeg.wasm work--### Troubleshooting--#### SharedArrayBuffer Not Available--If you see errors about SharedArrayBuffer:-- Check that the COOP/COEP headers are present in Network tab-- Verify `_headers` file was deployed to Cloudflare Pages-- Clear browser cache and hard reload--#### 404 on Routes--If direct URL access shows 404:-- Verify `_redirects` file is in the `dist/` folder after build-- Check Cloudflare Pages β Functions β Redirects--#### Deployment Fails--```bash-# Check wrangler authentication-npx wrangler whoami--# Re-login if needed-npx wrangler logout-npx wrangler login-```--### CI/CD Integration--For automated deployments, use GitHub Actions:--```yaml-name: Deploy to Cloudflare Pages--on:- push:- branches: [main]--jobs:- deploy:- runs-on: ubuntu-latest- steps:- - uses: actions/checkout@v4- - uses: pnpm/action-setup@v2- - uses: actions/setup-node@v4- with:- node-version: '18'- cache: 'pnpm'-- - run: pnpm install- - run: pnpm build-- - name: Deploy to Cloudflare Pages- uses: cloudflare/wrangler-action@v3- with:- apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}- accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}- command: pages deploy dist --project-name=openreel- workingDirectory: apps/web-```--### Environment Variables--If you need environment variables in production:--1. Go to Cloudflare Pages β openreel β Settings β Environment variables-2. Add variables (they'll be available at build time)-3. Redeploy for changes to take effect--### Monitoring--- **Analytics**: Available in Cloudflare Pages dashboard-- **Logs**: Check Cloudflare Pages β openreel β Deployments β View logs-- **Performance**: Use Web Analytics in Cloudflare dashboarddiff --git a/IMAGE.md b/IMAGE.mddeleted file mode 100644index 11253ec0..00000000--- a/IMAGE.md+++ /dev/null@@ -1,690 +0,0 @@-# Open Reel Image--**Browser-based graphic design editor for creators**--A professional-grade image editor built for the web. Create stunning social media graphics, thumbnails, posters, and marketing materialsβentirely offline, entirely in your browser.-------## Vision--Open Reel Image is the image editing companion to Open Reel Video. While the video editor handles motion content, Open Reel Image focuses on **static graphic design**βthe posters, thumbnails, social posts, and marketing materials that creators need alongside their videos.--Think **Canva meets Photoshop**, but:-- Runs 100% in the browser (WebAssembly-powered)-- Works completely offline-- No account required-- No watermarks-- Professional export quality-------## Target Users--| User Type | Use Case |-|-----------|----------|-| **YouTube Creators** | Thumbnails, channel art, end screens |-| **Social Media Managers** | Instagram posts, stories, carousels, Twitter graphics |-| **Small Business Owners** | Marketing materials, promotional graphics, sale banners |-| **Content Creators** | Podcast covers, Twitch overlays, TikTok covers |-| **Students & Educators** | Presentations, infographics, educational materials |-| **Freelancers** | Quick client deliverables without expensive software |-------## Core Philosophy--### Offline-First-Every feature works without an internet connection. Assets, fonts, templates, and processing all happen locally. Your work stays on your device.--### Performance-Obsessed-WASM-powered image processing means native-speed filters and effects. No waiting for cloud rendering. Real-time preview of every adjustment.--### Creator-Focused-Features designed around what creators actually needβsocial media templates, one-click background removal, export presets for every platform.--### No Compromises-Professional output quality. No artificial limitations. No "upgrade to export in HD" paywalls.-------## Feature Set--### Canvas & Composition--- **Infinite canvas** with zoom and pan-- **Multi-page projects** for carousels and multi-slide content-- **Layer system** with full z-ordering, grouping, and nesting-- **Precise positioning** with guides, grids, and smart snapping-- **Alignment tools** for professional layouts-- **Artboard presets** for every social platform-- **Custom canvas sizes** up to 8K resolution-- **Rulers and measurements** in pixels, inches, or cm--### Image Editing--- **Non-destructive editing** β original always preserved-- **Smart crop** with aspect ratio presets-- **Background removal** powered by on-device ML-- **Image adjustments:**- - Brightness, contrast, exposure- - Saturation, vibrance, temperature, tint- - Highlights, shadows, whites, blacks- - Clarity, sharpness, noise reduction- - Vignette, grain, fade-- **Filter presets** β Instagram-style one-click looks-- **Custom LUT support** β import your own color grades-- **Blend modes** β all standard Photoshop modes-- **Masking** β layer masks, clipping masks, alpha masks-- **Image effects:**- - Blur (Gaussian, motion, radial, tilt-shift)- - Glow and bloom- - Chromatic aberration- - Glitch and distortion- - Duotone and color mapping- - Pixelate and mosaic--### Text & Typography--- **Rich text editing** with full formatting-- **Google Fonts integration** β 1500+ fonts, cached offline-- **Custom font upload** β TTF, OTF, WOFF, WOFF2-- **Text styling:**- - Font weight, style, size- - Letter spacing, line height, word spacing- - Text alignment and justification- - Uppercase, lowercase, title case transforms-- **Text effects:**- - Drop shadow with blur and offset- - Outline/stroke with variable width- - Glow and outer glow- - Gradient fills (linear, radial, angular)- - Image/pattern fills- - 3D/perspective transforms-- **Curved text** β text on path, arc, wave, circle-- **Text boxes** with overflow handling-- **Vertical text** for Asian languages-- **Emoji support** with full color rendering--### Shapes & Graphics--- **Basic shapes** β rectangle, ellipse, triangle, polygon, star-- **Rounded corners** with per-corner control-- **Custom paths** β pen tool for vector drawing-- **Shape fills:**- - Solid color- - Linear gradient- - Radial gradient- - Image fill- - Pattern fill-- **Stroke options:**- - Variable width- - Dash patterns- - Line caps and joins-- **Boolean operations** β union, subtract, intersect, exclude-- **SVG import** β bring in custom vector graphics-- **Icon library** β built-in icon pack for common needs--### Stickers & Elements--- **Built-in sticker packs:**- - Arrows and callouts- - Social media icons- - Emojis and reactions- - Decorative elements- - Seasonal/holiday themes-- **Search functionality** across all elements-- **Favorites** for frequently used items-- **Custom element upload** β PNG, SVG, WebP--### Templates--- **Professional templates** for every use case:- - YouTube thumbnails- - Instagram posts, stories, reels covers- - Facebook posts and covers- - Twitter/X posts and headers- - LinkedIn posts and banners- - Pinterest pins- - TikTok covers- - Twitch panels and overlays- - Podcast covers- - Event flyers- - Business cards- - Presentations- - Infographics-- **Template categories:**- - Gaming- - Beauty & Fashion- - Food & Cooking- - Tech & Reviews- - Education- - Business- - Lifestyle- - Fitness- - Travel- - Music-- **Placeholder system** β easily swap images and text-- **Color scheme adaptation** β templates adjust to your brand colors-- **Save as template** β create your own reusable templates--### Brand Kit (Pro Feature Consideration)--- **Brand colors** β save your palette-- **Brand fonts** β quick access to your typography-- **Logos** β store multiple versions-- **Brand templates** β consistent starting points--### History & Workflow--- **Unlimited undo/redo** with visual history-- **Auto-save** to browser storage-- **Project versioning** β restore previous saves-- **Duplicate project** for variations-- **Copy/paste between projects**-- **Keyboard shortcuts** for power users-------## Export Capabilities--### Formats--| Format | Use Case | Features |-|--------|----------|----------|-| **PNG** | Web, transparency needed | 8-bit, 24-bit, 32-bit (alpha) |-| **JPEG** | Photos, smaller files | Quality 1-100, progressive |-| **WebP** | Modern web, best compression | Lossy and lossless |-| **AVIF** | Next-gen, smallest files | High quality at low sizes |-| **PDF** | Print, documents | Single and multi-page |-| **SVG** | Scalable graphics | Vector elements only |--### Export Options--- **Resolution control** β 1x, 2x, 3x, or custom scale-- **DPI settings** β 72 (web), 150 (draft), 300 (print), custom-- **Color profile** β sRGB, Adobe RGB, CMYK preview-- **Compression control** β balance quality vs file size-- **Batch export** β all pages at once-- **Export presets:**- - Web optimized (smallest file)- - Social media (platform-specific)- - Print ready (300 DPI, full quality)- - Custom saved presets--### Platform Presets--One-click export optimized for:--| Platform | Dimensions | Notes |-|----------|------------|-------|-| Instagram Post | 1080Γ1080 | Square, optimized compression |-| Instagram Story | 1080Γ1920 | 9:16, safe zones marked |-| Instagram Carousel | 1080Γ1350 | 4:5, multi-page |-| YouTube Thumbnail | 1280Γ720 | 16:9, <2MB for upload |-| Twitter/X Post | 1200Γ675 | 16:9, optimized |-| Facebook Post | 1200Γ630 | Link preview optimized |-| LinkedIn Post | 1200Γ627 | Professional network |-| Pinterest Pin | 1000Γ1500 | 2:3 vertical |-| TikTok Cover | 1080Γ1920 | Story format |-| Twitch Panel | 320Γ160 | Small, crisp |-------## Technical Architecture--### Performance Targets--| Metric | Target |-|--------|--------|-| Initial load | < 3 seconds |-| Filter preview | < 50ms |-| Background removal | < 3 seconds (first), < 500ms (cached) |-| Export (1080p) | < 2 seconds |-| Export (4K) | < 5 seconds |-| Memory usage | < 500MB typical, < 2GB max |--### Technology Stack--| Layer | Technology | Purpose |-|-------|------------|---------|-| UI Framework | React + TypeScript | Component architecture |-| State Management | Zustand | Lightweight, performant |-| Canvas Rendering | HTML Canvas + WebGL | Hardware acceleration |-| Image Processing | Rust β WebAssembly | Native-speed filters |-| ML Inference | ONNX Runtime (WASM) | Background removal |-| Text Rendering | Canvas 2D + Custom | Full typography control |-| Storage | IndexedDB | Projects, assets, cache |-| Fonts | Local cache + Google Fonts API | Offline typography |--### Offline Capabilities--**What works offline:**-- All editing features-- All filters and effects-- Background removal (models cached on first use)-- Export in all formats-- Previously loaded fonts-- Saved templates-- Project save/load--**What requires internet:**-- Loading new Google Fonts (first time only)-- Downloading new templates-- Stock image search (if implemented)--### Data Storage--| Data Type | Storage | Size Limit |-|-----------|---------|------------|-| Projects | IndexedDB | ~500MB per project |-| Assets | IndexedDB | Cached until cleared |-| Fonts | Cache API | ~200MB font cache |-| Templates | IndexedDB | Cached on first use |-| Preferences | LocalStorage | < 1MB |-| ML Models | Cache API | ~50MB per model |-------## User Interface--### Main Layout--```-βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ-β Logo File Edit View [Canvas: 1080Γ1080] [Zoom: 100%] β β-βββββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββ¬ββββββββββββ€-β β β β-β Tools β β Inspector β-β β β β-β β’ Selectβ β Position β-β β Hand β β x: 120 β-β T Text β Canvas Area β y: 340 β-β β‘ Shape β β β-β πΌ Image β β Size β-β ⬑ Elementβ β w: 200 β-β β β h: 150 β-β β β β-β β β Rotation β-β β β 0Β° β-β β β β-β β β Opacity β-β β β ββββ 100% β-β β β β-β β β Blend β-β β β Normal βΌ β-β β β β-βββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββ€-β Layers β-β ββ π Headline Text π π β-β ββ πΌ Background Image π π β-β ββ β’ Rectangle π π β-βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€-β [Page 1] [Page 2] [Page 3] [+] [Export βΌ] β-βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ-```--### Panel System--| Panel | Purpose |-|-------|---------|-| **Toolbar** | Primary tools (select, hand, text, shapes, etc.) |-| **Layers** | Layer management, visibility, locking, ordering |-| **Inspector** | Context-sensitive properties for selected item |-| **Pages** | Multi-page navigation for carousels |-| **Assets** | Project images, uploaded files |-| **Templates** | Browse and apply templates |-| **Elements** | Stickers, icons, shapes library |-| **Text** | Font browser, text presets |-| **Filters** | Image filter presets |-| **Adjustments** | Image adjustment sliders |--### Keyboard Shortcuts--| Action | Shortcut |-|--------|----------|-| Select tool | V |-| Hand/pan | H or Space (hold) |-| Text tool | T |-| Rectangle | R |-| Ellipse | E |-| Zoom in | Cmd/Ctrl + = |-| Zoom out | Cmd/Ctrl + - |-| Fit to screen | Cmd/Ctrl + 0 |-| Undo | Cmd/Ctrl + Z |-| Redo | Cmd/Ctrl + Shift + Z |-| Copy | Cmd/Ctrl + C |-| Paste | Cmd/Ctrl + V |-| Duplicate | Cmd/Ctrl + D |-| Delete | Backspace / Delete |-| Select all | Cmd/Ctrl + A |-| Deselect | Escape |-| Group | Cmd/Ctrl + G |-| Ungroup | Cmd/Ctrl + Shift + G |-| Bring forward | Cmd/Ctrl + ] |-| Send backward | Cmd/Ctrl + [ |-| Bring to front | Cmd/Ctrl + Shift + ] |-| Send to back | Cmd/Ctrl + Shift + [ |-| Save | Cmd/Ctrl + S |-| Export | Cmd/Ctrl + Shift + E |-| New project | Cmd/Ctrl + N |-| Open project | Cmd/Ctrl + O |-------## Competitive Comparison--| Feature | Open Reel Image | Canva | Adobe Express | Photopea |-|---------|-----------------|-------|---------------|----------|-| **Offline support** | β Full | β | β | β οΈ Partial |-| **Free tier** | β Unlimited | β οΈ Limited | β οΈ Limited | β Full |-| **No account needed** | β | β | β | β |-| **No watermarks** | β | β οΈ Pro elements | β οΈ Pro elements | β |-| **Background removal** | β Free | β οΈ Pro | β οΈ Pro | β Free |-| **Custom fonts** | β | β οΈ Pro | β οΈ Pro | β |-| **Export quality** | β Full | β οΈ Pro | β οΈ Pro | β |-| **Privacy** | β Local only | β Cloud | β Cloud | β οΈ |-| **Speed** | β WASM | β οΈ Cloud | β οΈ Cloud | β |-| **Advanced filters** | β | β οΈ Basic | β οΈ Basic | β |-| **Layer masks** | β | β | β | β |-| **Templates** | β | β Best | β Good | β |--### Our Advantages--1. **True offline** β Not just "works offline sometimes"-2. **Privacy-first** β Nothing leaves your device-3. **No artificial limits** β Full features, no paywalls-4. **Performance** β WASM means desktop-class speed-5. **Open source** β Transparent, community-driven--### Where We Need to Excel--1. **Templates** β Need volume and quality to compete with Canva-2. **Elements library** β Stickers, icons, graphics collection-3. **Ease of use** β Canva's simplicity is their moat-4. **Polish** β Professional feel in every interaction-------## Development Phases--### Phase 1: Foundation (MVP)-**Goal:** Basic working editor with core features--- [ ] Project management (new, save, load, export)-- [ ] Canvas with zoom, pan, guides-- [ ] Image layer with basic transforms-- [ ] Image import (drag & drop, file picker)-- [ ] Basic adjustments (brightness, contrast, saturation)-- [ ] Text layer with basic formatting-- [ ] Rectangle and ellipse shapes-- [ ] Layer panel with reordering-- [ ] PNG and JPEG export-- [ ] Undo/redo system--### Phase 2: Image Power-**Goal:** Professional image editing capabilities--- [ ] Full adjustment panel (all sliders)-- [ ] Filter presets (20+ looks)-- [ ] Background removal (ML-powered)-- [ ] Blend modes-- [ ] Basic masking-- [ ] Crop with aspect ratios-- [ ] Image effects (blur, vignette, grain)--### Phase 3: Typography-**Goal:** Professional text capabilities--- [ ] Google Fonts integration with offline cache-- [ ] Custom font upload-- [ ] Text effects (shadow, outline, glow)-- [ ] Gradient text fills-- [ ] Curved text / text on path-- [ ] Text presets and styles--### Phase 4: Shapes & Elements-**Goal:** Complete graphics toolkit--- [ ] Full shape library-- [ ] Pen tool for custom paths-- [ ] Shape fills (gradient, image, pattern)-- [ ] Boolean operations-- [ ] SVG import-- [ ] Built-in elements/stickers library-- [ ] Icon pack--### Phase 5: Templates & Presets-**Goal:** Quick-start for users--- [ ] Template browser UI-- [ ] 50+ starter templates-- [ ] Social media presets-- [ ] Export presets-- [ ] Save as template-- [ ] Placeholder system--### Phase 6: Polish & Pro Features-**Goal:** Professional-grade experience--- [ ] Multi-page / carousel support-- [ ] Brand kit-- [ ] Advanced masking-- [ ] Keyboard shortcuts (full set)-- [ ] Context menus-- [ ] Snap and alignment guides-- [ ] Rulers and measurements-- [ ] PDF export-- [ ] WebP and AVIF export--### Phase 7: Scale & Performance-**Goal:** Handle any project size--- [ ] Large canvas optimization (8K+)-- [ ] Memory management-- [ ] Progressive loading-- [ ] Background processing-- [ ] Performance monitoring-------## Success Metrics--### User Experience Goals--| Metric | Target |-|--------|--------|-| Time to first design | < 2 minutes |-| Learning curve | Productive in < 10 minutes |-| Export satisfaction | > 95% usable on first try |-| Return usage | > 60% come back within 7 days |--### Technical Goals--| Metric | Target |-|--------|--------|-| Lighthouse performance | > 90 |-| First contentful paint | < 1.5s |-| Time to interactive | < 3s |-| Core Web Vitals | All green |-| Offline reliability | 100% feature parity |-| Crash rate | < 0.1% of sessions |--### Growth Goals--| Metric | 3 Month | 6 Month | 12 Month |-|--------|---------|---------|----------|-| Monthly active users | 1,000 | 10,000 | 50,000 |-| Projects created | 5,000 | 75,000 | 500,000 |-| Exports completed | 10,000 | 150,000 | 1,000,000 |-------## Content Strategy--### Templates Needed (Priority Order)--1. **YouTube Thumbnails** β Biggest creator need- - Gaming (Minecraft, Fortnite, variety)- - Tech reviews- - Vlogs- - Tutorials- - Reactions- - Podcasts--2. **Instagram** β Highest volume- - Quote posts- - Product showcases- - Announcements- - Carousels (educational, storytelling)- - Story templates--3. **Business** β Monetization potential- - Sale announcements- - Product launches- - Event promotions- - Hiring posts- - Testimonials--4. **General Social** β Cross-platform- - Motivational quotes- - Tips and tricks- - Before/after- - Lists and rankings--### Element Library Priorities--1. **Arrows and callouts** β Tutorial creators need these-2. **Social icons** β Platform logos, engagement icons-3. **Frames and borders** β Easy visual enhancement-4. **Badges and labels** β "New", "Sale", "Free", etc.-5. **Abstract shapes** β Background decoration-6. **Emojis** β Universal engagement-------## Integration with Open Reel Video--### Shared Components--- Asset management system-- Export pipeline-- Color picker-- Font system-- Project storage--### Workflow Integration--1. **Thumbnail from video** β Extract frame, edit as image-2. **Shared assets** β Use same images across video and graphics-3. **Consistent branding** β Same fonts, colors across projects-4. **Quick access** β Switch between video and image editor--### Unified Export--- Export video + thumbnail together-- Batch export for YouTube (video + thumbnail + end screen)-- Consistent file naming-------## Future Considerations--### Potential Future Features--- **AI-powered features:**- - Text suggestions- - Layout recommendations- - Color palette generation- - Image enhancement- - Object removal--- **Collaboration:**- - Real-time multiplayer editing- - Comments and feedback- - Version history with contributors--- **Stock integration:**- - Free stock image search- - Icon library expansion- - Premium asset marketplace--- **Animation (light):**- - Animated stickers- - GIF export- - Simple motion for social posts--### Monetization Options (If Needed)--- Premium templates-- Extended element library-- Priority support-- Team features-- Custom branding removal-- API access-------## File Structure (Proposed)--```-openreel/-βββ apps/-β βββ video/ # Video editor app-β βββ image/ # Image editor app-β βββ src/-β β βββ components/-β β β βββ canvas/ # Canvas and rendering-β β β βββ panels/ # UI panels-β β β βββ tools/ # Tool implementations-β β β βββ ui/ # Shared UI components-β β βββ engine/-β β β βββ layers/ # Layer system-β β β βββ history/ # Undo/redo-β β β βββ export/ # Export pipeline-β β β βββ project/ # Project management-β β βββ stores/ # State management-β β βββ hooks/ # React hooks-β β βββ utils/ # Utilities-β βββ public/-β βββ templates/ # Template JSON files-β βββ elements/ # Built-in elements-βββ packages/-β βββ image-core/ # Rust WASM image processing-β β βββ src/-β β β βββ adjustments/-β β β βββ filters/-β β β βββ effects/-β β β βββ composite/-β β β βββ export/-β β βββ Cargo.toml-β βββ ml-models/ # ONNX models for ML features-β βββ shared/ # Shared utilities-βββ docs/- βββ IMAGE_README.md # This document- βββ architecture/-```-------## Open Questions--1. **Template creation** β Build custom tool or use Figma/design tool exports?-2. **Element library source** β License existing or create original?-3. **Font licensing** β Google Fonts sufficient or need more?-4. **Mobile support** β Responsive or separate mobile app?-------## Summary--Open Reel Image is a browser-based graphic design editor that gives creators professional tools without the complexity of Photoshop or the limitations of Canva's free tier. By running entirely offline with WASM-powered processing, we offer speed, privacy, and freedom that cloud-based competitors can't match.--The editor focuses on the graphics creators actually needβsocial media posts, thumbnails, marketing materialsβwith templates and presets that make professional design accessible to everyone.--**Our promise:** Professional graphic design, free forever, no internet required.-------*Last updated: January 2025*-*Version: 0.1.0-planning*diff --git a/Image-features.md b/Image-features.mddeleted file mode 100644index 9c1a3255..00000000--- a/Image-features.md+++ /dev/null@@ -1,1213 +0,0 @@-# Open Reel Image - Complete Features List--A comprehensive breakdown of all features required for the Open Reel Image editor.--**Legend:**-- π΄ P0 β Critical for MVP-- π P1 β Important, post-MVP-- π‘ P2 β Nice to have-- π’ P3 β Future consideration-------## 1. Project Management--### 1.1 Project Operations-| Feature | Priority | Description |-|---------|----------|-------------|-| Create new project | π΄ P0 | Start fresh project with canvas size selection |-| Open existing project | π΄ P0 | Load project from browser storage |-| Save project | π΄ P0 | Persist project to IndexedDB |-| Auto-save | π΄ P0 | Automatic saving at intervals and on changes |-| Duplicate project | π P1 | Create copy of entire project |-| Delete project | π΄ P0 | Remove project from storage |-| Rename project | π΄ P0 | Change project name |-| Project thumbnails | π P1 | Auto-generated previews in project list |-| Recent projects | π΄ P0 | Quick access to recently edited projects |-| Import project file | π P1 | Load .openreel project file from disk |-| Export project file | π P1 | Save .openreel project file to disk |-| Project templates | π P1 | Start from pre-designed project |--### 1.2 Canvas Presets-| Feature | Priority | Description |-|---------|----------|-------------|-| Custom size | π΄ P0 | User-defined width and height |-| Instagram Post (1080Γ1080) | π΄ P0 | Square format |-| Instagram Story (1080Γ1920) | π΄ P0 | 9:16 vertical |-| Instagram Carousel (1080Γ1350) | π΄ P0 | 4:5 portrait |-| YouTube Thumbnail (1280Γ720) | π΄ P0 | 16:9 landscape |-| Twitter/X Post (1200Γ675) | π΄ P0 | Twitter optimized |-| Facebook Post (1200Γ630) | π P1 | Facebook feed |-| Facebook Cover (820Γ312) | π P1 | Profile cover |-| LinkedIn Post (1200Γ627) | π P1 | LinkedIn feed |-| LinkedIn Banner (1584Γ396) | π‘ P2 | Profile banner |-| Pinterest Pin (1000Γ1500) | π P1 | 2:3 vertical |-| TikTok Cover (1080Γ1920) | π P1 | Video cover |-| Twitch Panel (320Γ160) | π‘ P2 | Stream panel |-| YouTube Channel Art (2560Γ1440) | π‘ P2 | Channel banner |-| Podcast Cover (3000Γ3000) | π‘ P2 | Apple Podcasts spec |-| A4 Document (2480Γ3508) | π‘ P2 | Print document |-| US Letter (2550Γ3300) | π‘ P2 | Print document |-| Business Card (1050Γ600) | π‘ P2 | Standard card |-| Presentation 16:9 (1920Γ1080) | π‘ P2 | Slide deck |-| Presentation 4:3 (1024Γ768) | π‘ P2 | Classic slides |--### 1.3 Multi-Page Support-| Feature | Priority | Description |-|---------|----------|-------------|-| Add page | π P1 | Create new page in project |-| Delete page | π P1 | Remove page from project |-| Duplicate page | π P1 | Copy page with all layers |-| Reorder pages | π P1 | Drag to change page order |-| Page navigation | π P1 | Switch between pages |-| Page thumbnails | π P1 | Visual preview of all pages |-| Copy layers between pages | π P1 | Move/copy elements across pages |-| Batch page operations | π‘ P2 | Apply changes to multiple pages |-| Page transitions (for export) | π’ P3 | Animated transitions in GIF/video export |-------## 2. Canvas & Viewport--### 2.1 Canvas Controls-| Feature | Priority | Description |-|---------|----------|-------------|-| Pan/scroll canvas | π΄ P0 | Navigate around canvas |-| Zoom in/out | π΄ P0 | Scale canvas view |-| Zoom to fit | π΄ P0 | Fit canvas in viewport |-| Zoom to selection | π P1 | Focus on selected element |-| Zoom to 100% | π΄ P0 | Actual pixels view |-| Zoom presets | π P1 | 25%, 50%, 100%, 200%, etc. |-| Zoom slider | π P1 | Continuous zoom control |-| Mouse wheel zoom | π΄ P0 | Scroll to zoom |-| Pinch to zoom | π P1 | Touch gesture support |-| Mini-map navigation | π‘ P2 | Overview panel for large canvases |--### 2.2 Canvas Display-| Feature | Priority | Description |-|---------|----------|-------------|-| Canvas background color | π΄ P0 | Set canvas fill color |-| Canvas background image | π P1 | Set image as canvas background |-| Transparent background | π΄ P0 | Checkerboard pattern display |-| Workspace background | π P1 | Color outside canvas area |-| Canvas border | π P1 | Visual canvas edge indicator |-| Safe zone overlay | π‘ P2 | Show safe areas for platforms |-| Pixel grid (high zoom) | π‘ P2 | Show pixel boundaries when zoomed |--### 2.3 Guides & Grids-| Feature | Priority | Description |-|---------|----------|-------------|-| Show/hide grid | π P1 | Toggle grid visibility |-| Grid size setting | π P1 | Customize grid spacing |-| Snap to grid | π P1 | Align elements to grid |-| Horizontal guides | π P1 | Draggable horizontal lines |-| Vertical guides | π P1 | Draggable vertical lines |-| Snap to guides | π P1 | Align elements to guides |-| Clear all guides | π P1 | Remove all guides at once |-| Lock guides | π‘ P2 | Prevent accidental guide movement |-| Guide input (precise) | π‘ P2 | Enter exact guide position |-| Rulers | π P1 | Horizontal and vertical rulers |-| Ruler units | π‘ P2 | Pixels, inches, cm, mm |--### 2.4 Smart Guides & Snapping-| Feature | Priority | Description |-|---------|----------|-------------|-| Snap to objects | π΄ P0 | Align to other layer edges |-| Snap to center | π΄ P0 | Align to canvas/object centers |-| Distance indicators | π P1 | Show spacing between objects |-| Equal spacing guides | π P1 | Distribute objects evenly |-| Alignment guides | π΄ P0 | Visual guides during drag |-| Snap threshold setting | π‘ P2 | Customize snap distance |-| Toggle snapping | π΄ P0 | Enable/disable all snapping |-------## 3. Layer System--### 3.1 Layer Types-| Feature | Priority | Description |-|---------|----------|-------------|-| Image layer | π΄ P0 | Raster image content |-| Text layer | π΄ P0 | Editable text content |-| Shape layer | π΄ P0 | Vector shapes |-| Group layer | π P1 | Container for multiple layers |-| Mask layer | π‘ P2 | Alpha mask for parent |-| Adjustment layer | π‘ P2 | Non-destructive adjustments |-| Frame layer | π‘ P2 | Clipping frame for images |--### 3.2 Layer Operations-| Feature | Priority | Description |-|---------|----------|-------------|-| Select layer | π΄ P0 | Click to select |-| Multi-select layers | π΄ P0 | Shift/Cmd click for multiple |-| Marquee select | π P1 | Drag to select multiple |-| Reorder layers (drag) | π΄ P0 | Drag in layer panel |-| Move layer up | π΄ P0 | Keyboard shortcut |-| Move layer down | π΄ P0 | Keyboard shortcut |-| Move to top | π P1 | Bring to front |-| Move to bottom | π P1 | Send to back |-| Duplicate layer | π΄ P0 | Create copy |-| Delete layer | π΄ P0 | Remove layer |-| Copy layer | π΄ P0 | Copy to clipboard |-| Paste layer | π΄ P0 | Paste from clipboard |-| Cut layer | π΄ P0 | Cut to clipboard |-| Paste in place | π P1 | Paste at same position |-| Rename layer | π΄ P0 | Custom layer name |-| Lock layer | π΄ P0 | Prevent editing |-| Hide layer | π΄ P0 | Toggle visibility |-| Lock position | π P1 | Lock only position |-| Lock all except | π‘ P2 | Lock all other layers |--### 3.3 Layer Grouping-| Feature | Priority | Description |-|---------|----------|-------------|-| Create group | π P1 | Group selected layers |-| Ungroup | π P1 | Dissolve group |-| Nested groups | π P1 | Groups within groups |-| Group visibility | π P1 | Hide/show entire group |-| Group lock | π P1 | Lock entire group |-| Edit group contents | π P1 | Select items within group |-| Group transform | π P1 | Transform group as unit |-| Collapse/expand group | π P1 | UI toggle in layer panel |--### 3.4 Layer Properties-| Feature | Priority | Description |-|---------|----------|-------------|-| Opacity | π΄ P0 | 0-100% transparency |-| Blend mode | π P1 | Layer blending |-| Position X/Y | π΄ P0 | Numeric position |-| Width/Height | π΄ P0 | Numeric dimensions |-| Rotation | π΄ P0 | Rotation angle |-| Scale X/Y | π P1 | Independent axis scaling |-| Anchor point | π P1 | Transform origin |-| Flip horizontal | π΄ P0 | Mirror horizontally |-| Flip vertical | π΄ P0 | Mirror vertically |--### 3.5 Blend Modes-| Feature | Priority | Description |-|---------|----------|-------------|-| Normal | π΄ P0 | Default blending |-| Multiply | π P1 | Darken blend |-| Screen | π P1 | Lighten blend |-| Overlay | π P1 | Contrast blend |-| Soft Light | π P1 | Subtle contrast |-| Hard Light | π‘ P2 | Strong contrast |-| Color Dodge | π‘ P2 | Brighten blend |-| Color Burn | π‘ P2 | Darken intensify |-| Darken | π‘ P2 | Keep darker pixels |-| Lighten | π‘ P2 | Keep lighter pixels |-| Difference | π‘ P2 | Invert blend |-| Exclusion | π‘ P2 | Softer difference |-| Hue | π‘ P2 | Apply hue only |-| Saturation | π‘ P2 | Apply saturation only |-| Color | π‘ P2 | Apply hue + saturation |-| Luminosity | π‘ P2 | Apply brightness only |--### 3.6 Layer Panel UI-| Feature | Priority | Description |-|---------|----------|-------------|-| Layer list | π΄ P0 | Visual layer stack |-| Layer thumbnails | π΄ P0 | Preview of layer content |-| Visibility toggle | π΄ P0 | Eye icon |-| Lock toggle | π΄ P0 | Lock icon |-| Layer type icon | π΄ P0 | Visual indicator of type |-| Selected layer highlight | π΄ P0 | Visual selection state |-| Drag handle | π΄ P0 | Reorder indicator |-| Context menu | π P1 | Right-click options |-| Opacity slider (inline) | π‘ P2 | Quick opacity adjust |-| Search/filter layers | π‘ P2 | Find layers by name |-------## 4. Selection & Transform--### 4.1 Selection Tools-| Feature | Priority | Description |-|---------|----------|-------------|-| Select tool (V) | π΄ P0 | Click to select layers |-| Direct select | π P1 | Select within groups |-| Marquee selection | π P1 | Rectangle drag select |-| Lasso selection | π‘ P2 | Freeform drag select |-| Select all | π΄ P0 | Select all layers |-| Deselect all | π΄ P0 | Clear selection |-| Select inverse | π‘ P2 | Invert selection |-| Select same type | π‘ P2 | Select all text/images/shapes |--### 4.2 Transform Controls-| Feature | Priority | Description |-|---------|----------|-------------|-| Move (drag) | π΄ P0 | Drag to reposition |-| Move (arrow keys) | π΄ P0 | Nudge with keyboard |-| Move (precise input) | π΄ P0 | Enter X/Y values |-| Resize (handles) | π΄ P0 | Drag corners/edges |-| Resize (precise) | π΄ P0 | Enter width/height |-| Maintain aspect ratio | π΄ P0 | Shift+drag or toggle |-| Rotate (handle) | π΄ P0 | Drag rotation handle |-| Rotate (precise) | π΄ P0 | Enter angle |-| Rotate 90Β° CW | π P1 | Quick rotate |-| Rotate 90Β° CCW | π P1 | Quick rotate |-| Skew/shear | π‘ P2 | Non-uniform transform |-| Free transform | π P1 | All transforms at once |-| Transform origin | π P1 | Set pivot point |--### 4.3 Alignment-| Feature | Priority | Description |-|---------|----------|-------------|-| Align left | π΄ P0 | Align to left edge |-| Align center (H) | π΄ P0 | Align horizontal centers |-| Align right | π΄ P0 | Align to right edge |-| Align top | π΄ P0 | Align to top edge |-| Align middle (V) | π΄ P0 | Align vertical centers |-| Align bottom | π΄ P0 | Align to bottom edge |-| Align to canvas | π΄ P0 | Align relative to canvas |-| Align to selection | π΄ P0 | Align relative to selection bounds |-| Distribute horizontally | π P1 | Equal horizontal spacing |-| Distribute vertically | π P1 | Equal vertical spacing |-| Distribute spacing | π P1 | Equal gaps between objects |-------## 5. Image Layers--### 5.1 Image Import-| Feature | Priority | Description |-|---------|----------|-------------|-| File picker import | π΄ P0 | Browse and select files |-| Drag and drop | π΄ P0 | Drop files onto canvas |-| Paste from clipboard | π΄ P0 | Paste copied images |-| PNG support | π΄ P0 | Import PNG files |-| JPEG support | π΄ P0 | Import JPEG files |-| WebP support | π΄ P0 | Import WebP files |-| GIF support (static) | π P1 | Import as static image |-| SVG support | π P1 | Import as image or vector |-| AVIF support | π‘ P2 | Next-gen format |-| HEIC support | π‘ P2 | Apple format |-| PSD support | π’ P3 | Photoshop import |-| Raw format support | π’ P3 | Camera raw files |-| URL import | π‘ P2 | Import from web URL |-| Multiple file import | π P1 | Import several at once |--### 5.2 Image Cropping-| Feature | Priority | Description |-|---------|----------|-------------|-| Crop tool | π΄ P0 | Enter crop mode |-| Free crop | π΄ P0 | Any aspect ratio |-| Aspect ratio lock | π΄ P0 | Constrained crop |-| Preset ratios | π΄ P0 | 1:1, 4:3, 16:9, etc. |-| Custom ratio | π P1 | User-defined ratio |-| Crop handles | π΄ P0 | Drag to adjust |-| Crop overlay (rule of thirds) | π P1 | Composition guides |-| Rotate while cropping | π P1 | Straighten image |-| Apply/cancel crop | π΄ P0 | Confirm or abort |-| Reset crop | π΄ P0 | Restore original |--### 5.3 Image Adjustments-| Feature | Priority | Description |-|---------|----------|-------------|-| Brightness | π΄ P0 | Overall lightness |-| Contrast | π΄ P0 | Tonal range |-| Exposure | π P1 | Light exposure |-| Saturation | π΄ P0 | Color intensity |-| Vibrance | π P1 | Smart saturation |-| Temperature | π΄ P0 | Warm/cool shift |-| Tint | π P1 | Green/magenta shift |-| Highlights | π P1 | Bright area control |-| Shadows | π P1 | Dark area control |-| Whites | π‘ P2 | White point |-| Blacks | π‘ P2 | Black point |-| Clarity | π P1 | Midtone contrast |-| Sharpness | π P1 | Edge enhancement |-| Noise reduction | π‘ P2 | Denoise filter |-| Dehaze | π‘ P2 | Remove atmospheric haze |-| Vignette | π P1 | Edge darkening |-| Grain | π P1 | Film grain effect |-| Fade | π P1 | Lifted blacks |--### 5.4 Filters & Presets-| Feature | Priority | Description |-|---------|----------|-------------|-| Filter browser | π΄ P0 | Visual filter selection |-| Filter preview | π΄ P0 | See before applying |-| Filter intensity | π΄ P0 | Adjust filter strength |-| Original preset | π΄ P0 | No filter applied |-| Vivid preset | π΄ P0 | Enhanced colors |-| Warm preset | π΄ P0 | Warm tones |-| Cool preset | π΄ P0 | Cool tones |-| B&W preset | π΄ P0 | Black and white |-| Vintage preset | π P1 | Retro look |-| Film presets | π P1 | Kodak, Fuji looks |-| Cinematic presets | π P1 | Movie color grades |-| Portrait presets | π P1 | Skin tone optimized |-| Landscape presets | π P1 | Nature optimized |-| Food presets | π‘ P2 | Food photography |-| Custom LUT import | π‘ P2 | Import .cube files |-| Save custom preset | π‘ P2 | Save adjustment combo |-| Preset categories | π P1 | Organized filter groups |--### 5.5 Image Effects-| Feature | Priority | Description |-|---------|----------|-------------|-| Blur (Gaussian) | π P1 | Soft blur |-| Blur (Motion) | π‘ P2 | Directional blur |-| Blur (Radial) | π‘ P2 | Spin blur |-| Blur (Tilt-shift) | π‘ P2 | Selective focus |-| Sharpen | π P1 | Edge sharpening |-| Unsharp mask | π‘ P2 | Advanced sharpen |-| Glow | π‘ P2 | Soft glow effect |-| Bloom | π‘ P2 | Highlight bloom |-| Chromatic aberration | π‘ P2 | RGB fringing |-| Glitch effect | π‘ P2 | Digital distortion |-| Pixelate | π‘ P2 | Mosaic effect |-| Duotone | π‘ P2 | Two-color mapping |-| Color halftone | π’ P3 | Print dots effect |-| Posterize | π‘ P2 | Reduce colors |-| Invert colors | π P1 | Negative image |-| Sepia | π P1 | Brown tone |-| Hue shift | π‘ P2 | Rotate colors |--### 5.6 Background Removal-| Feature | Priority | Description |-|---------|----------|-------------|-| One-click BG removal | π΄ P0 | AI-powered removal |-| Preview mode | π΄ P0 | See result before applying |-| Quality settings | π P1 | Speed vs quality tradeoff |-| Refine edges | π P1 | Manual edge adjustment |-| Feather edges | π P1 | Soft edge transition |-| Keep/remove brush | π‘ P2 | Manual touch-up |-| Replace background | π P1 | Add new background |-| Background blur | π‘ P2 | Blur original background |-| Edge detection preview | π‘ P2 | Show detected edges |-| Batch BG removal | π’ P3 | Remove from multiple images |--### 5.7 Image Masking-| Feature | Priority | Description |-|---------|----------|-------------|-| Layer mask | π‘ P2 | Grayscale transparency mask |-| Clipping mask | π‘ P2 | Clip to layer below |-| Shape mask | π P1 | Mask with shape |-| Gradient mask | π‘ P2 | Gradual transparency |-| Brush mask editing | π‘ P2 | Paint mask |-| Invert mask | π‘ P2 | Flip mask |-| Feather mask | π‘ P2 | Soft mask edges |-| Mask visibility toggle | π‘ P2 | Show mask overlay |-------## 6. Text Layers--### 6.1 Text Creation-| Feature | Priority | Description |-|---------|----------|-------------|-| Text tool (T) | π΄ P0 | Click to create text |-| Click to place | π΄ P0 | Single click creates text |-| Text box (drag) | π P1 | Drag to create bounded text |-| Auto-sizing text | π΄ P0 | Box fits content |-| Fixed width text | π P1 | Text wraps in box |-| Edit text (double-click) | π΄ P0 | Enter edit mode |-| Exit text edit | π΄ P0 | Click outside or Escape |--### 6.2 Font Selection-| Feature | Priority | Description |-|---------|----------|-------------|-| System fonts | π΄ P0 | Use installed fonts |-| Google Fonts | π΄ P0 | Access Google Fonts library |-| Font search | π΄ P0 | Search by name |-| Font preview | π΄ P0 | See font before selecting |-| Recent fonts | π P1 | Quick access to used fonts |-| Favorite fonts | π P1 | Star preferred fonts |-| Font categories | π P1 | Serif, Sans, Display, etc. |-| Custom font upload | π P1 | TTF, OTF, WOFF, WOFF2 |-| Font pairing suggestions | π’ P3 | Recommended combinations |-| Variable fonts | π‘ P2 | Continuous weight/width |-| Font caching (offline) | π΄ P0 | Cache for offline use |--### 6.3 Text Formatting-| Feature | Priority | Description |-|---------|----------|-------------|-| Font family | π΄ P0 | Select typeface |-| Font size | π΄ P0 | Text size in px |-| Font weight | π΄ P0 | Light to Black |-| Font style (italic) | π΄ P0 | Italic/oblique |-| Text color | π΄ P0 | Fill color |-| Text alignment (left) | π΄ P0 | Align left |-| Text alignment (center) | π΄ P0 | Align center |-| Text alignment (right) | π΄ P0 | Align right |-| Text alignment (justify) | π P1 | Justified text |-| Letter spacing | π΄ P0 | Character spacing |-| Line height | π΄ P0 | Line spacing |-| Word spacing | π‘ P2 | Space between words |-| Paragraph spacing | π‘ P2 | Space between paragraphs |-| Text transform (upper) | π P1 | UPPERCASE |-| Text transform (lower) | π P1 | lowercase |-| Text transform (title) | π P1 | Title Case |-| Underline | π P1 | Underlined text |-| Strikethrough | π P1 | Crossed out text |-| Superscript | π‘ P2 | Raised text |-| Subscript | π‘ P2 | Lowered text |--### 6.4 Text Styling-| Feature | Priority | Description |-|---------|----------|-------------|-| Solid fill | π΄ P0 | Single color fill |-| Gradient fill | π P1 | Gradient text |-| Image fill | π‘ P2 | Image masked by text |-| Pattern fill | π‘ P2 | Repeating pattern |-| Outline/stroke | π P1 | Text border |-| Stroke width | π P1 | Border thickness |-| Stroke color | π P1 | Border color |-| Stroke position | π‘ P2 | Inside/center/outside |-| Drop shadow | π P1 | Text shadow |-| Shadow color | π P1 | Shadow tint |-| Shadow blur | π P1 | Shadow softness |-| Shadow offset X/Y | π P1 | Shadow position |-| Inner shadow | π‘ P2 | Inset shadow |-| Outer glow | π‘ P2 | Glow effect |-| Inner glow | π‘ P2 | Inner glow |-| Background (highlight) | π P1 | Text background color |-| Background padding | π P1 | Space around text |-| Background radius | π P1 | Rounded corners |-| 3D/extrude | π’ P3 | 3D text effect |-| Neon effect | π‘ P2 | Neon glow preset |--### 6.5 Text Path-| Feature | Priority | Description |-|---------|----------|-------------|-| Text on arc | π‘ P2 | Curved text (circle) |-| Text on wave | π‘ P2 | Wavy text |-| Text on path | π‘ P2 | Custom path text |-| Arc amount control | π‘ P2 | Curvature intensity |-| Reverse path | π‘ P2 | Flip text direction |-| Start offset | π‘ P2 | Where text starts on path |--### 6.6 Text Presets-| Feature | Priority | Description |-|---------|----------|-------------|-| Heading presets | π P1 | Pre-styled headlines |-| Subheading presets | π P1 | Pre-styled subtitles |-| Body presets | π P1 | Pre-styled paragraphs |-| Stylized presets | π P1 | Decorative text styles |-| Save custom preset | π‘ P2 | Save text style |-| Preset categories | π P1 | Organized text styles |--### 6.7 Rich Text (Per-Character)-| Feature | Priority | Description |-|---------|----------|-------------|-| Select text range | π΄ P0 | Highlight portion |-| Mixed formatting | π P1 | Different styles in one layer |-| Mixed colors | π P1 | Multi-color text |-| Mixed fonts | π‘ P2 | Multiple fonts in one layer |-| Emoji support | π΄ P0 | Color emoji rendering |-| Special characters | π P1 | Symbols, arrows, etc. |-------## 7. Shape Layers--### 7.1 Basic Shapes-| Feature | Priority | Description |-|---------|----------|-------------|-| Rectangle | π΄ P0 | Basic rectangle |-| Square (shift) | π΄ P0 | Constrained rectangle |-| Ellipse | π΄ P0 | Oval shape |-| Circle (shift) | π΄ P0 | Constrained ellipse |-| Triangle | π P1 | Three-sided polygon |-| Polygon | π P1 | N-sided shape |-| Star | π P1 | Star shape |-| Line | π΄ P0 | Straight line |-| Arrow | π P1 | Line with arrowhead |--### 7.2 Shape Properties-| Feature | Priority | Description |-|---------|----------|-------------|-| Corner radius | π΄ P0 | Rounded corners |-| Individual corner radius | π P1 | Per-corner control |-| Polygon sides | π P1 | Number of sides |-| Star points | π P1 | Number of points |-| Star inner radius | π P1 | Point depth |-| Line thickness | π΄ P0 | Stroke width for lines |-| Arrow head style | π P1 | Arrow end types |-| Arrow head size | π P1 | Arrow end scale |--### 7.3 Shape Fill-| Feature | Priority | Description |-|---------|----------|-------------|-| Solid fill | π΄ P0 | Single color |-| No fill | π΄ P0 | Transparent fill |-| Linear gradient | π P1 | Directional gradient |-| Radial gradient | π P1 | Circular gradient |-| Angular gradient | π‘ P2 | Conical gradient |-| Gradient stops | π P1 | Multi-color gradient |-| Gradient angle | π P1 | Rotation of gradient |-| Image fill | π‘ P2 | Image inside shape |-| Pattern fill | π‘ P2 | Repeating pattern |-| Fill opacity | π΄ P0 | Fill transparency |--### 7.4 Shape Stroke-| Feature | Priority | Description |-|---------|----------|-------------|-| Stroke color | π΄ P0 | Border color |-| Stroke width | π΄ P0 | Border thickness |-| No stroke | π΄ P0 | Remove border |-| Stroke opacity | π P1 | Border transparency |-| Stroke position | π‘ P2 | Inside/center/outside |-| Dash pattern | π P1 | Dashed lines |-| Dash gap | π P1 | Space between dashes |-| Line cap | π P1 | Butt/round/square |-| Line join | π P1 | Miter/round/bevel |-| Stroke gradient | π‘ P2 | Gradient border |--### 7.5 Vector Editing-| Feature | Priority | Description |-|---------|----------|-------------|-| Pen tool | π‘ P2 | Create custom paths |-| Add anchor point | π‘ P2 | Add point to path |-| Remove anchor point | π‘ P2 | Delete point |-| Convert anchor point | π‘ P2 | Corner to smooth |-| Direct selection | π‘ P2 | Select individual points |-| Move anchor point | π‘ P2 | Reposition point |-| Bezier handles | π‘ P2 | Curve control handles |-| Close path | π‘ P2 | Connect start to end |-| Path simplify | π’ P3 | Reduce point count |-| Path offset | π’ P3 | Expand/contract path |--### 7.6 Boolean Operations-| Feature | Priority | Description |-|---------|----------|-------------|-| Union | π‘ P2 | Combine shapes |-| Subtract | π‘ P2 | Remove overlap |-| Intersect | π‘ P2 | Keep overlap only |-| Exclude | π‘ P2 | Remove overlap, keep rest |-| Flatten | π‘ P2 | Merge to single path |-------## 8. Elements & Assets--### 8.1 Built-in Elements-| Feature | Priority | Description |-|---------|----------|-------------|-| Element browser | π P1 | Browse element library |-| Element search | π P1 | Search by keyword |-| Element categories | π P1 | Organized collections |-| Element preview | π P1 | See before adding |-| Drag to canvas | π P1 | Drop element on canvas |-| Click to add | π P1 | Add at center |-| Element favorites | π‘ P2 | Save preferred elements |-| Recently used | π P1 | Quick access |--### 8.2 Element Categories-| Feature | Priority | Description |-|---------|----------|-------------|-| Arrows | π P1 | Direction indicators |-| Callouts | π P1 | Speech bubbles, annotations |-| Lines & dividers | π P1 | Decorative separators |-| Frames | π P1 | Image frames, borders |-| Badges & labels | π P1 | "New", "Sale", etc. |-| Icons | π P1 | Common icons |-| Social icons | π΄ P0 | Platform logos |-| Emojis | π P1 | Emoji graphics |-| Abstract shapes | π P1 | Decorative elements |-| Blobs & organic | π‘ P2 | Organic shapes |-| Patterns | π‘ P2 | Background patterns |-| Textures | π‘ P2 | Overlay textures |-| Seasonal | π‘ P2 | Holiday themed |-| Stickers | π P1 | Fun decorative items |-| Hand-drawn | π‘ P2 | Sketchy elements |--### 8.3 SVG Import-| Feature | Priority | Description |-|---------|----------|-------------|-| SVG file import | π P1 | Import SVG files |-| Paste SVG code | π‘ P2 | Paste raw SVG |-| SVG as vector | π P1 | Editable paths |-| SVG as image | π P1 | Rasterized SVG |-| SVG color override | π‘ P2 | Recolor imported SVG |-| SVG grouping preserved | π‘ P2 | Maintain SVG structure |--### 8.4 Asset Library-| Feature | Priority | Description |-|---------|----------|-------------|-| Project assets panel | π P1 | Assets in current project |-| Upload asset | π΄ P0 | Add image to library |-| Asset thumbnails | π P1 | Visual preview |-| Asset search | π‘ P2 | Find by name |-| Delete asset | π P1 | Remove from library |-| Reuse asset | π P1 | Add to canvas again |-| Replace asset | π‘ P2 | Swap across all uses |-| Asset info | π‘ P2 | Dimensions, size, type |-| Drag from library | π P1 | Drop on canvas |-------## 9. Templates--### 9.1 Template Browser-| Feature | Priority | Description |-|---------|----------|-------------|-| Template gallery | π P1 | Visual template grid |-| Template search | π P1 | Search by keyword |-| Template categories | π P1 | Filter by type |-| Template preview | π P1 | See full template |-| Template info | π P1 | Dimensions, pages |-| Apply template | π P1 | Use as starting point |-| Template pages preview | π‘ P2 | See all pages |--### 9.2 Template Categories-| Feature | Priority | Description |-|---------|----------|-------------|-| YouTube Thumbnails | π΄ P0 | Video thumbnails |-| Instagram Posts | π΄ P0 | Square posts |-| Instagram Stories | π΄ P0 | Vertical stories |-| Instagram Carousels | π P1 | Multi-slide posts |-| Facebook Posts | π P1 | FB feed posts |-| Twitter/X Posts | π P1 | Tweet images |-| LinkedIn Posts | π P1 | Professional posts |-| Pinterest Pins | π P1 | Vertical pins |-| TikTok Covers | π P1 | Video covers |-| Quotes | π P1 | Quote graphics |-| Announcements | π P1 | News, updates |-| Sales & Promos | π P1 | Discount graphics |-| Event Flyers | π‘ P2 | Event promotion |-| Invitations | π‘ P2 | Party, event invites |-| Presentations | π‘ P2 | Slide templates |-| Infographics | π‘ P2 | Data visualization |-| Business Cards | π‘ P2 | Contact cards |-| Posters | π‘ P2 | Large format |-| Twitch/Gaming | π‘ P2 | Stream graphics |--### 9.3 Template Features-| Feature | Priority | Description |-|---------|----------|-------------|-| Placeholder images | π P1 | Replaceable photos |-| Placeholder text | π P1 | Editable text areas |-| Color scheme | π‘ P2 | Template color palette |-| Color adaptation | π‘ P2 | Apply brand colors |-| Font alternatives | π‘ P2 | Suggested font swaps |-| Save as template | π‘ P2 | Create custom template |-| Organize custom templates | π‘ P2 | Manage saved templates |-------## 10. Color & Gradients--### 10.1 Color Picker-| Feature | Priority | Description |-|---------|----------|-------------|-| Color spectrum | π΄ P0 | Visual hue selection |-| Saturation/brightness | π΄ P0 | SB square picker |-| Hue slider | π΄ P0 | Hue strip |-| Alpha slider | π΄ P0 | Transparency |-| Hex input | π΄ P0 | Enter hex code |-| RGB input | π΄ P0 | Enter RGB values |-| HSL input | π P1 | Enter HSL values |-| HSB/HSV input | π P1 | Enter HSB values |-| CMYK preview | π‘ P2 | Print color preview |-| Eyedropper | π΄ P0 | Pick from canvas |-| Recent colors | π΄ P0 | Recently used |-| Saved colors | π P1 | User saved palette |-| Preset palettes | π P1 | Curated color sets |-| Color harmony | π‘ P2 | Complementary, etc. |--### 10.2 Gradient Editor-| Feature | Priority | Description |-|---------|----------|-------------|-| Gradient bar | π P1 | Visual gradient preview |-| Add color stop | π P1 | Add gradient point |-| Remove color stop | π P1 | Delete gradient point |-| Move color stop | π P1 | Reposition stop |-| Stop color picker | π P1 | Change stop color |-| Stop opacity | π P1 | Per-stop alpha |-| Gradient angle | π P1 | Rotation for linear |-| Gradient position | π P1 | Move gradient center |-| Gradient scale | π‘ P2 | Stretch gradient |-| Preset gradients | π P1 | Popular gradients |-| Save gradient | π‘ P2 | Save custom gradient |-| Reverse gradient | π P1 | Flip direction |--### 10.3 Brand Colors-| Feature | Priority | Description |-|---------|----------|-------------|-| Brand palette | π‘ P2 | Store brand colors |-| Add brand color | π‘ P2 | Save to palette |-| Remove brand color | π‘ P2 | Delete from palette |-| Reorder colors | π‘ P2 | Organize palette |-| Import palette | π‘ P2 | Import color codes |-| Export palette | π‘ P2 | Share palette |-------## 11. History & Undo--### 11.1 Undo System-| Feature | Priority | Description |-|---------|----------|-------------|-| Undo | π΄ P0 | Revert last action |-| Redo | π΄ P0 | Restore undone action |-| Multiple undo | π΄ P0 | Unlimited history |-| Keyboard shortcuts | π΄ P0 | Cmd/Ctrl+Z, Shift+Z |--### 11.2 History Panel-| Feature | Priority | Description |-|---------|----------|-------------|-| History list | π P1 | Visual action history |-| Action descriptions | π P1 | "Move layer", "Change color" |-| Jump to state | π P1 | Click to restore |-| Current state indicator | π P1 | Show active state |-| Clear history | π‘ P2 | Reset history |-| History limit setting | π‘ P2 | Max states stored |--### 11.3 Snapshots-| Feature | Priority | Description |-|---------|----------|-------------|-| Create snapshot | π‘ P2 | Save current state |-| Name snapshot | π‘ P2 | Label saved state |-| Restore snapshot | π‘ P2 | Return to saved state |-| Delete snapshot | π‘ P2 | Remove saved state |-| Compare snapshots | π’ P3 | Side by side view |-------## 12. Export--### 12.1 Export Formats-| Feature | Priority | Description |-|---------|----------|-------------|-| PNG export | π΄ P0 | Lossless with alpha |-| JPEG export | π΄ P0 | Lossy compression |-| WebP export | π P1 | Modern format |-| AVIF export | π‘ P2 | Next-gen format |-| PDF export | π P1 | Print/document |-| PDF multi-page | π P1 | All pages in one PDF |-| SVG export | π‘ P2 | Vector only |-| GIF export | π‘ P2 | Static or animated |--### 12.2 Export Settings-| Feature | Priority | Description |-|---------|----------|-------------|-| Quality slider | π΄ P0 | Compression level |-| File size preview | π P1 | Estimate size |-| Dimensions display | π΄ P0 | Show output size |-| Scale factor | π P1 | 1x, 2x, 3x export |-| Custom dimensions | π P1 | Specific pixel size |-| DPI setting | π P1 | 72, 150, 300, custom |-| Color profile | π‘ P2 | sRGB, Adobe RGB |-| Transparent background | π΄ P0 | PNG alpha |-| Background color | π΄ P0 | Set export background |-| Flatten layers | π΄ P0 | Merge on export |-| Trim transparent | π‘ P2 | Remove empty space |--### 12.3 Export Options-| Feature | Priority | Description |-|---------|----------|-------------|-| Export current page | π΄ P0 | Single page export |-| Export all pages | π P1 | Batch page export |-| Export selection | π‘ P2 | Export selected only |-| Export layer | π‘ P2 | Single layer export |-| Export filename | π΄ P0 | Custom filename |-| Auto-numbering | π P1 | Sequential names |-| Export presets | π P1 | Saved export settings |-| Quick export | π P1 | One-click last settings |--### 12.4 Platform Presets-| Feature | Priority | Description |-|---------|----------|-------------|-| Instagram Post preset | π΄ P0 | Optimized settings |-| Instagram Story preset | π΄ P0 | Optimized settings |-| YouTube Thumbnail preset | π΄ P0 | Under 2MB, optimized |-| Twitter/X preset | π P1 | Optimized settings |-| Facebook preset | π P1 | Optimized settings |-| LinkedIn preset | π P1 | Optimized settings |-| Pinterest preset | π P1 | Optimized settings |-| Print preset (300 DPI) | π P1 | High quality |-| Web preset (72 DPI) | π P1 | Optimized size |-| Custom preset (save) | π‘ P2 | Save own presets |-------## 13. User Interface--### 13.1 Layout-| Feature | Priority | Description |-|---------|----------|-------------|-| Top toolbar | π΄ P0 | Main actions bar |-| Left toolbar | π΄ P0 | Tool selection |-| Right panel | π΄ P0 | Inspector/properties |-| Bottom panel | π΄ P0 | Layers/pages |-| Collapsible panels | π P1 | Hide/show panels |-| Resizable panels | π P1 | Drag to resize |-| Floating panels | π‘ P2 | Detach panels |-| Panel memory | π P1 | Remember layout |-| Full screen mode | π P1 | Hide all UI |-| Presentation mode | π‘ P2 | Canvas only view |--### 13.2 Toolbar-| Feature | Priority | Description |-|---------|----------|-------------|-| Select tool | π΄ P0 | Selection mode |-| Hand tool | π΄ P0 | Pan canvas |-| Text tool | π΄ P0 | Create text |-| Shape tools | π΄ P0 | Create shapes |-| Image tool | π P1 | Import images |-| Element tool | π P1 | Open elements |-| Crop tool | π P1 | Crop mode |-| Tool options bar | π P1 | Context options |-| Tool tooltips | π΄ P0 | Hover help |--### 13.3 Inspector Panel-| Feature | Priority | Description |-|---------|----------|-------------|-| Context-sensitive | π΄ P0 | Shows relevant options |-| Position inputs | π΄ P0 | X, Y fields |-| Size inputs | π΄ P0 | W, H fields |-| Rotation input | π΄ P0 | Angle field |-| Opacity slider | π΄ P0 | Transparency |-| Lock aspect toggle | π΄ P0 | Constrain proportions |-| Alignment buttons | π΄ P0 | Quick align |-| Fill section | π΄ P0 | Color/gradient |-| Stroke section | π΄ P0 | Border options |-| Effects section | π P1 | Shadow, etc. |-| Collapsible sections | π P1 | Organize options |--### 13.4 Menus-| Feature | Priority | Description |-|---------|----------|-------------|-| File menu | π΄ P0 | New, Open, Save, Export |-| Edit menu | π΄ P0 | Undo, Cut, Copy, Paste |-| View menu | π P1 | Zoom, Guides, Rulers |-| Layer menu | π P1 | Layer operations |-| Arrange menu | π P1 | Align, Distribute |-| Context menu | π P1 | Right-click options |-| Keyboard shortcuts in menus | π P1 | Show shortcuts |--### 13.5 Dialogs & Modals-| Feature | Priority | Description |-|---------|----------|-------------|-| New project dialog | π΄ P0 | Size selection |-| Export dialog | π΄ P0 | Export options |-| Settings dialog | π P1 | App preferences |-| Keyboard shortcuts list | π P1 | View all shortcuts |-| Confirmation dialogs | π΄ P0 | Destructive actions |-| Loading indicators | π΄ P0 | Progress feedback |-| Error messages | π΄ P0 | User-friendly errors |-| Toast notifications | π P1 | Quick feedback |-------## 14. Keyboard & Input--### 14.1 Essential Shortcuts-| Feature | Priority | Description |-|---------|----------|-------------|-| V - Select | π΄ P0 | Switch to select |-| H - Hand | π΄ P0 | Switch to hand |-| T - Text | π΄ P0 | Switch to text |-| R - Rectangle | π΄ P0 | Switch to rectangle |-| E - Ellipse | π΄ P0 | Switch to ellipse |-| Cmd/Ctrl+Z - Undo | π΄ P0 | Undo action |-| Cmd/Ctrl+Shift+Z - Redo | π΄ P0 | Redo action |-| Cmd/Ctrl+C - Copy | π΄ P0 | Copy selection |-| Cmd/Ctrl+V - Paste | π΄ P0 | Paste clipboard |-| Cmd/Ctrl+X - Cut | π΄ P0 | Cut selection |-| Cmd/Ctrl+D - Duplicate | π΄ P0 | Duplicate selection |-| Cmd/Ctrl+A - Select All | π΄ P0 | Select all layers |-| Delete/Backspace | π΄ P0 | Delete selection |-| Escape | π΄ P0 | Deselect/cancel |-| Space (hold) | π΄ P0 | Temporary hand tool |-| Arrow keys | π΄ P0 | Nudge selection |-| Shift+Arrow | π΄ P0 | Nudge 10px |--### 14.2 Zoom & View Shortcuts-| Feature | Priority | Description |-|---------|----------|-------------|-| Cmd/Ctrl++ | π΄ P0 | Zoom in |-| Cmd/Ctrl+- | π΄ P0 | Zoom out |-| Cmd/Ctrl+0 | π΄ P0 | Fit to screen |-| Cmd/Ctrl+1 | π P1 | Zoom to 100% |-| Cmd/Ctrl+2 | π P1 | Zoom to 200% |--### 14.3 Layer Shortcuts-| Feature | Priority | Description |-|---------|----------|-------------|-| Cmd/Ctrl+G | π P1 | Group selection |-| Cmd/Ctrl+Shift+G | π P1 | Ungroup |-| Cmd/Ctrl+] | π P1 | Bring forward |-| Cmd/Ctrl+[ | π P1 | Send backward |-| Cmd/Ctrl+Shift+] | π P1 | Bring to front |-| Cmd/Ctrl+Shift+[ | π P1 | Send to back |-| Cmd/Ctrl+L | π‘ P2 | Lock layer |-| Cmd/Ctrl+; | π‘ P2 | Toggle guides |--### 14.4 File Shortcuts-| Feature | Priority | Description |-|---------|----------|-------------|-| Cmd/Ctrl+N | π΄ P0 | New project |-| Cmd/Ctrl+O | π΄ P0 | Open project |-| Cmd/Ctrl+S | π΄ P0 | Save project |-| Cmd/Ctrl+Shift+S | π P1 | Save as |-| Cmd/Ctrl+Shift+E | π΄ P0 | Export |-| Cmd/Ctrl+W | π P1 | Close project |--### 14.5 Transform Shortcuts-| Feature | Priority | Description |-|---------|----------|-------------|-| Shift+drag | π΄ P0 | Constrain proportions |-| Alt+drag | π P1 | Transform from center |-| Shift+rotate | π΄ P0 | Snap to 15Β° |-| Alt+drag (duplicate) | π P1 | Drag to duplicate |--### 14.6 Input Gestures-| Feature | Priority | Description |-|---------|----------|-------------|-| Scroll wheel zoom | π΄ P0 | Mouse wheel zoom |-| Two-finger pan | π P1 | Trackpad pan |-| Pinch to zoom | π P1 | Trackpad zoom |-| Right-click context | π P1 | Context menu |-| Double-click edit | π΄ P0 | Edit text/path |-------## 15. Settings & Preferences--### 15.1 General Settings-| Feature | Priority | Description |-|---------|----------|-------------|-| Auto-save interval | π P1 | Set save frequency |-| Language | π‘ P2 | Interface language |-| Theme (light/dark) | π P1 | UI appearance |-| Canvas background | π P1 | Workspace color |-| Show welcome screen | π P1 | Toggle on launch |-| Measurement units | π‘ P2 | Pixels, inches, cm |-| Default project size | π‘ P2 | New project default |--### 15.2 Performance Settings-| Feature | Priority | Description |-|---------|----------|-------------|-| Hardware acceleration | π‘ P2 | GPU usage |-| Preview quality | π‘ P2 | Speed vs quality |-| History states limit | π‘ P2 | Memory management |-| Cache size limit | π‘ P2 | Storage management |-| Clear cache | π P1 | Free storage space |--### 15.3 Export Defaults-| Feature | Priority | Description |-|---------|----------|-------------|-| Default format | π‘ P2 | PNG, JPEG, etc. |-| Default quality | π‘ P2 | Compression level |-| Default DPI | π‘ P2 | Resolution |-| Filename pattern | π‘ P2 | Naming convention |--### 15.4 Keyboard Customization-| Feature | Priority | Description |-|---------|----------|-------------|-| View all shortcuts | π P1 | Shortcuts list |-| Reset to defaults | π‘ P2 | Restore shortcuts |-| Custom shortcuts | π’ P3 | User-defined |-| Export shortcuts | π’ P3 | Backup shortcuts |-------## 16. Data & Storage--### 16.1 Local Storage-| Feature | Priority | Description |-|---------|----------|-------------|-| IndexedDB projects | π΄ P0 | Project persistence |-| Asset storage | π΄ P0 | Image caching |-| Font caching | π΄ P0 | Offline fonts |-| Template caching | π P1 | Offline templates |-| Settings storage | π΄ P0 | Preferences |-| Recent projects | π΄ P0 | Project list |-| Storage quota check | π P1 | Check available space |-| Storage management UI | π P1 | View/clear storage |--### 16.2 Import/Export Data-| Feature | Priority | Description |-|---------|----------|-------------|-| Export project file | π P1 | .openreel format |-| Import project file | π P1 | Load .openreel |-| Export all projects | π‘ P2 | Backup everything |-| Import projects | π‘ P2 | Restore backup |-| Export templates | π‘ P2 | Share templates |-| Import templates | π‘ P2 | Add templates |--### 16.3 Cloud Sync (Future)-| Feature | Priority | Description |-|---------|----------|-------------|-| Account system | π’ P3 | Optional accounts |-| Cloud backup | π’ P3 | Sync projects |-| Cross-device sync | π’ P3 | Access anywhere |-| Share projects | π’ P3 | Share with others |-| Collaborative editing | π’ P3 | Real-time collab |-------## 17. Accessibility--### 17.1 Visual Accessibility-| Feature | Priority | Description |-|---------|----------|-------------|-| High contrast mode | π‘ P2 | Enhanced visibility |-| Zoom UI | π‘ P2 | Scale interface |-| Focus indicators | π P1 | Keyboard focus visible |-| Color blind modes | π’ P3 | Alternate color schemes |--### 17.2 Keyboard Accessibility-| Feature | Priority | Description |-|---------|----------|-------------|-| Full keyboard navigation | π P1 | Tab through UI |-| Focus trapping (modals) | π P1 | Proper focus in dialogs |-| Skip to content | π‘ P2 | Skip navigation |-| Shortcut discoverability | π P1 | Show shortcuts |--### 17.3 Screen Reader-| Feature | Priority | Description |-|---------|----------|-------------|-| ARIA labels | π P1 | Proper labeling |-| ARIA live regions | π‘ P2 | Announce changes |-| Alt text for elements | π‘ P2 | Describe visuals |-| Semantic HTML | π P1 | Proper structure |-------## 18. Performance & Optimization--### 18.1 Rendering-| Feature | Priority | Description |-|---------|----------|-------------|-| WebGL acceleration | π P1 | GPU rendering |-| Canvas virtualization | π P1 | Render visible only |-| Layer caching | π P1 | Cache unchanged layers |-| Mipmap generation | π‘ P2 | Fast zoom levels |-| Progressive rendering | π‘ P2 | Show low-res first |-| Render throttling | π P1 | Limit redraws |--### 18.2 Memory Management-| Feature | Priority | Description |-|---------|----------|-------------|-| Lazy asset loading | π P1 | Load on demand |-| Asset unloading | π P1 | Free unused memory |-| Large image handling | π P1 | Tile-based processing |-| Memory monitoring | π‘ P2 | Track usage |-| Low memory warning | π‘ P2 | Alert user |-| Graceful degradation | π‘ P2 | Reduce quality if needed |--### 18.3 Loading Performance-| Feature | Priority | Description |-|---------|----------|-------------|-| Code splitting | π P1 | Load features on demand |-| WASM streaming | π P1 | Stream compile WASM |-| Preload critical assets | π P1 | Fast initial load |-| Service worker caching | π P1 | Offline support |-| Asset compression | π P1 | Smaller downloads |-------## 19. Error Handling--### 19.1 User Errors-| Feature | Priority | Description |-|---------|----------|-------------|-| Invalid file type | π΄ P0 | Clear error message |-| File too large | π΄ P0 | Size limit message |-| Corrupt file handling | π P1 | Graceful failure |-| Unsupported feature | π P1 | Feature not available |-| Storage quota exceeded | π P1 | Storage full message |--### 19.2 System Errors-| Feature | Priority | Description |-|---------|----------|-------------|-| Crash recovery | π΄ P0 | Auto-save restore |-| WASM error handling | π΄ P0 | Graceful WASM failures |-| Network errors | π P1 | Offline fallbacks |-| Font loading errors | π P1 | Fallback fonts |-| Render errors | π P1 | Error boundaries |--### 19.3 Error Reporting-| Feature | Priority | Description |-|---------|----------|-------------|-| Error logging | π P1 | Track errors |-| Error details | π P1 | Technical info |-| Report issue link | π‘ P2 | Bug reporting |-| Diagnostic export | π‘ P2 | Debug info export |-------## 20. Analytics & Feedback (Optional)--### 20.1 Usage Analytics-| Feature | Priority | Description |-|---------|----------|-------------|-| Opt-in analytics | π’ P3 | Privacy-respecting |-| Feature usage tracking | π’ P3 | Popular features |-| Error tracking | π‘ P2 | Bug discovery |-| Performance metrics | π’ P3 | Slowdowns |--### 20.2 User Feedback-| Feature | Priority | Description |-|---------|----------|-------------|-| Feedback button | π‘ P2 | Quick feedback |-| Feature requests | π‘ P2 | Collect ideas |-| Bug reports | π‘ P2 | Report issues |-| NPS survey | π’ P3 | User satisfaction |-------## Summary Statistics--| Priority | Count | Description |-|----------|-------|-------------|-| π΄ P0 | ~120 | Critical for MVP |-| π P1 | ~180 | Important post-MVP |-| π‘ P2 | ~130 | Nice to have |-| π’ P3 | ~25 | Future consideration |--**Total Features: ~455**-------## Implementation Notes--### MVP Scope (P0 Only)-Estimated development time: **6-8 weeks**--Core MVP includes:-- Project management basics-- Canvas with zoom/pan-- Image layers with basic adjustments-- Text layers with formatting-- Basic shapes-- Layer system-- PNG/JPEG export-- Undo/redo-- Essential keyboard shortcuts--### Post-MVP Phase 1 (Add P1)-Estimated additional time: **8-10 weeks**--Adds:-- Full image adjustment suite-- Filter presets-- Background removal-- Advanced text effects-- Gradients-- Templates-- Multi-page-- All blend modes-- Smart guides-- Platform export presets--### Full Product (Add P2)-Estimated additional time: **6-8 weeks**--Adds:-- Vector editing-- Masking-- Advanced effects-- Boolean operations-- Custom LUTs-- Full accessibility-- Performance optimizations-------*Last updated: January 2025*diff --git a/OPENREEL_IMAGE_TECH_TASKS.md b/OPENREEL_IMAGE_TECH_TASKS.mddeleted file mode 100644index 1f53d0c5..00000000--- a/OPENREEL_IMAGE_TECH_TASKS.md+++ /dev/null@@ -1,509 +0,0 @@-# OpenReel Image Technical Task List--OpenReel Image is currently a strong editor prototype with React UI, Canvas2D rendering, Zustand stores, artboards, layers, text, shapes, uploads, templates, basic export, and background removal. To reach a Canva + Photoshop style product, the next work should focus on engine foundations first, then design workflows, photo workflows, AI, cloud, and quality.--## 0. Baseline Stabilization β--- [x] Keep `pnpm --filter @openreel/image typecheck` passing.-- [x] Keep `pnpm --filter @openreel/image test:run` passing.-- [x] Replace the placeholder test in `apps/image/src/app.test.ts` with real smoke tests.-- [x] Add project creation tests.-- [x] Add layer add/remove/duplicate/reorder tests.-- [x] Add artboard add/remove/update tests.-- [x] Add export service tests for PNG, JPG, and WebP.-- [x] Add project schema validation before loading `.orimg` files.-- [x] Add project migration support with explicit `version` handling.-- [x] Audit all tool panels and mark whether each is fully implemented, partially wired, or UI-only.-- [x] Add a feature status matrix for tools, panels, and export formats.--Tech:--- Vitest-- React Testing Library-- Zod or Valibot for project validation-- Playwright for browser smoke tests--## 1. Extract Image Core β--- [x] Create `packages/image-core`.-- [x] Move shared image document types out of `apps/image/src/types`.-- [x] Move pure layer operations out of Zustand stores.-- [x] Define a stable document model:- - [x] Document- - [x] Artboard/page- - [x] Layer tree- - [x] Group layer- - [x] Image layer- - [x] Text layer- - [x] Shape/vector layer- - [x] Adjustment layer- - [x] Mask- - [x] Smart object- - [x] Asset reference- - [x] Effects stack- - [x] Selection state- - [x] Export preset-- [x] Add pure functions for add, remove, duplicate, group, ungroup, reorder, rename, lock, hide, transform, and style updates.-- [x] Add invariant checks for invalid layer trees.-- [x] Add serialization and deserialization tests.--Tech:--- TypeScript strict mode-- Vitest-- fast-check for property tests-- Zod or Valibot--## 2. Command-Based Editing And History β--- [x] Replace snapshot-first history with a command/action system.-- [x] Define command interface with `apply`, `invert`, and `merge` support.-- [x] Implement commands:- - [x] `CreateProject`- - [x] `AddArtboard`- - [x] `RemoveArtboard`- - [x] `UpdateArtboard`- - [x] `AddLayer`- - [x] `RemoveLayer`- - [x] `DuplicateLayer`- - [x] `ReorderLayer`- - [x] `UpdateLayerTransform`- - [x] `UpdateLayerStyle`- - [x] `UpdateText`- - [x] `ApplyAdjustment`- - [x] `ApplyMask`- - [x] `RasterEdit`-- [x] Add command coalescing for drag, resize, brush strokes, and slider scrubbing.-- [x] Add checkpoint snapshots for large raster edits.-- [x] Add undo/redo tests for every command.-- [x] Update `HistoryPanel` to show meaningful command names.--Tech:--- Zustand or a dedicated command store-- Immer-- IndexedDB/OPFS for large raster checkpoints--## 3. Storage And Project Files--- [ ] Replace `localStorage` auto-save with IndexedDB metadata storage.-- [ ] Store large binary image assets in OPFS.-- [ ] Store thumbnails separately from original assets.-- [ ] Add asset deduplication by content hash.-- [ ] Add blob URL lifecycle management.-- [ ] Add project recovery after tab crash or refresh.-- [ ] Add import/export for `.orimg` as a zipped package.-- [ ] Include `project.json`, assets, thumbnails, fonts, and metadata in `.orimg`.-- [ ] Add migration tests from older project versions.--Tech:--- IndexedDB-- OPFS-- JSZip or fflate-- Web Workers for packaging--## 4. Rendering Engine--- [ ] Create `packages/image-renderer`.-- [ ] Separate interactive viewport rendering from final export rendering.-- [ ] Move renderer logic out of `Canvas.tsx`.-- [ ] Add a renderer interface:- - [ ] `renderViewport`- - [ ] `renderArtboard`- - [ ] `renderLayer`- - [ ] `renderThumbnail`- - [ ] `hitTest`- - [ ] `measureLayerBounds`-- [ ] Add Canvas2D renderer as baseline.-- [ ] Add OffscreenCanvas rendering in a worker.-- [ ] Add dirty-region invalidation.-- [ ] Add layer thumbnail generation.-- [ ] Add tile-based rendering for large canvases.-- [ ] Add high-DPI rendering support.-- [ ] Add pixel-diff tests for renderer output.--Tech:--- Canvas2D-- OffscreenCanvas-- Web Workers-- Pixelmatch or similar pixel-diff library--## 5. WebGPU Rendering And Pixel Processing--- [ ] Add WebGPU feature detection.-- [ ] Add Canvas2D fallback path.-- [ ] Implement GPU blend mode compositor.-- [ ] Implement GPU filter pipeline.-- [ ] Implement GPU mask compositing.-- [ ] Implement GPU adjustment layers.-- [ ] Implement GPU Gaussian blur.-- [ ] Implement GPU sharpen.-- [ ] Implement GPU curves/levels.-- [ ] Implement GPU HSL/selective color.-- [ ] Implement GPU gradient/noise fills.-- [ ] Implement GPU displacement map for liquify/warp.-- [ ] Add WASM fallback for browsers without WebGPU.--Tech:--- WebGPU-- WGSL shaders-- WASM fallback modules-- Workerized processing--## 6. Selection System--- [ ] Create a dedicated selection model.-- [ ] Implement rectangular selection.-- [ ] Implement elliptical selection.-- [ ] Implement lasso selection.-- [ ] Implement polygon lasso selection.-- [ ] Implement magic wand selection with tolerance.-- [ ] Implement add/subtract/intersect selection modes.-- [ ] Implement feather.-- [ ] Implement smooth.-- [ ] Implement expand/contract.-- [ ] Implement invert selection.-- [ ] Implement save/load selection.-- [ ] Implement selection to mask.-- [ ] Implement mask to selection.-- [ ] Implement selection-aware delete, fill, copy, cut, paste, and transform.--Tech:--- Mask buffers-- WebGPU/WASM flood fill-- Canvas overlay renderer--## 7. Layer Masks And Clipping--- [ ] Finish per-layer mask data model.-- [ ] Add mask preview in layer panel.-- [ ] Add enable/disable mask.-- [ ] Add unlink mask from layer transform.-- [ ] Add apply mask.-- [ ] Add delete mask.-- [ ] Add mask painting.-- [ ] Add clipping masks.-- [ ] Add clipping groups.-- [ ] Add group masks.-- [ ] Add export support for masks and clipping.--Tech:--- Alpha mask buffers-- Renderer mask compositing-- Command history integration--## 8. Photo Editing Tools--- [ ] Finish brush engine integration.-- [ ] Add brush stroke persistence.-- [ ] Add brush spacing, hardness, opacity, flow, and blend mode.-- [ ] Add stylus pressure support.-- [ ] Finish eraser as raster edit and mask edit.-- [ ] Finish paint bucket with selection support.-- [ ] Finish gradient tool.-- [ ] Finish clone stamp.-- [ ] Finish healing brush.-- [ ] Finish spot healing.-- [ ] Finish dodge/burn.-- [ ] Finish sponge.-- [ ] Finish smudge.-- [ ] Finish blur/sharpen brush.-- [ ] Finish crop with aspect presets.-- [ ] Add straighten crop.-- [ ] Add perspective crop.-- [ ] Finish free transform.-- [ ] Finish perspective transform.-- [ ] Finish warp transform.-- [ ] Finish liquify.--Tech:--- Pointer Events-- Pointer pressure/tilt-- OffscreenCanvas-- WebGPU/WASM raster edits-- Command checkpoints for brush strokes--## 9. Adjustment Layers And Filters--- [ ] Convert destructive adjustment controls into nondestructive adjustment layers.-- [ ] Add adjustment layer type.-- [ ] Add adjustment stack ordering.-- [ ] Add clipped adjustment layers.-- [ ] Finish levels.-- [ ] Finish curves.-- [ ] Finish color balance.-- [ ] Finish selective color.-- [ ] Finish black and white.-- [ ] Finish photo filter.-- [ ] Finish channel mixer.-- [ ] Finish gradient map.-- [ ] Finish posterize.-- [ ] Finish threshold.-- [ ] Add LUT import.-- [ ] Add filter presets.-- [ ] Add nondestructive smart filters.--Tech:--- Adjustment layer renderer-- WebGPU shaders-- LUT parser-- Preset JSON schema--## 10. Text Engine--- [ ] Move text layout to image core.-- [ ] Add robust multiline text layout.-- [ ] Add text boxes with overflow behavior.-- [ ] Add auto-fit text.-- [ ] Add vertical alignment.-- [ ] Add paragraph spacing.-- [ ] Add letter spacing.-- [ ] Add text transform controls.-- [ ] Add text-on-path.-- [ ] Add editable text cursor/selection on canvas.-- [ ] Add font loading and missing font fallback.-- [ ] Add Google Fonts or curated font catalog.-- [ ] Add text style presets.--Tech:--- FontFace API-- Canvas text metrics-- Optional HarfBuzz WASM later for advanced layout--## 11. Vector And Shape Tools--- [ ] Finish pen tool editing.-- [ ] Add anchor point selection.-- [ ] Add bezier handles.-- [ ] Add boolean path operations.-- [ ] Add compound paths.-- [ ] Add SVG import normalization.-- [ ] Add SVG export for vector layers.-- [ ] Add shape-specific controls for polygon/star/arrow/line.-- [ ] Add custom icon elements instead of disabled placeholders.-- [ ] Add vector hit testing.--Tech:--- SVG path parser-- Path boolean library or custom WASM later-- Renderer support for vector paths--## 12. Canva-Style Design Workflows--- [ ] Build real template objects with editable layers.-- [ ] Add template thumbnails.-- [ ] Add template search.-- [ ] Add template categories:- - [ ] Instagram post- - [ ] Instagram story- - [ ] YouTube thumbnail- - [ ] TikTok/Reels cover- - [ ] Poster- - [ ] Flyer- - [ ] Presentation- - [ ] Logo- - [ ] Business card- - [ ] Ad banners-- [ ] Add brand kits.-- [ ] Add reusable colors.-- [ ] Add reusable fonts.-- [ ] Add reusable logos.-- [ ] Add style presets.-- [ ] Add frames and image placeholders.-- [ ] Add drag-to-replace image frames.-- [ ] Add smart guides.-- [ ] Add distribute/tidy layout.-- [ ] Add magic resize across artboard sizes.-- [ ] Add batch export for social formats.--Tech:--- Template JSON schema-- Asset catalog-- IndexedDB/R2 asset storage-- Search indexing with Fuse.js or Minisearch--## 13. Asset Library--- [ ] Add local asset folders.-- [ ] Add asset tagging.-- [ ] Add asset search.-- [ ] Add asset metadata extraction.-- [ ] Add image thumbnail generation.-- [ ] Add SVG thumbnail generation.-- [ ] Add favorite assets.-- [ ] Add recent assets.-- [ ] Add stock asset integration later.-- [ ] Add drag/drop from OS into canvas.-- [ ] Add drag/drop from asset panel into canvas.--Tech:--- IndexedDB-- OPFS-- Web Workers-- Optional Cloudflare R2 for synced assets--## 14. AI Features--- [ ] Keep local background removal working.-- [ ] Add server-side AI gateway.-- [ ] Add text-to-image generation.-- [ ] Add image variations.-- [ ] Add generative fill.-- [ ] Add object removal.-- [ ] Add background replacement.-- [ ] Add product photo background generation.-- [ ] Add prompt-to-template.-- [ ] Add prompt-to-social-post.-- [ ] Add smart crop/reframe.-- [ ] Add image upscaling.-- [ ] Add AI-generated layer metadata.-- [ ] Add usage limits and error handling.--Tech:--- Cloudflare Workers-- OpenAI Images API or selected provider-- Cloudflare R2 for generated assets-- Queues for long-running jobs-- Rate limiting--## 15. Export And Import--- [ ] Finish PNG export.-- [ ] Finish JPG export.-- [ ] Finish WebP export.-- [ ] Implement true SVG export.-- [ ] Implement PDF export.-- [ ] Implement multi-artboard PDF export.-- [ ] Add transparent background export.-- [ ] Add scale presets.-- [ ] Add print bleed.-- [ ] Add crop marks.-- [ ] Add social export bundles.-- [ ] Add zipped multi-file export.-- [ ] Add SVG import.-- [ ] Add PDF import as rasterized pages.-- [ ] Investigate limited PSD import.--Tech:--- Canvas export-- SVG serializer-- pdf-lib or server-side Playwright/Skia-- fflate/JSZip-- PDF.js for import--## 16. Cloud Product Layer--- [ ] Add account system.-- [ ] Add project dashboard.-- [ ] Add cloud save.-- [ ] Add project sync.-- [ ] Add cloud asset library.-- [ ] Add share links.-- [ ] Add comments.-- [ ] Add team folders.-- [ ] Add permissions.-- [ ] Add template publishing.-- [ ] Add version history.-- [ ] Add billing/usage tracking if AI or storage becomes paid.--Tech:--- Cloudflare Workers-- Cloudflare Pages-- Cloudflare R2-- Cloudflare D1 or external Postgres-- Auth.js, Clerk, Supabase Auth, or custom auth-- Durable Objects for realtime sessions later--## 17. Collaboration--- [ ] Add presence model.-- [ ] Add multiplayer cursors.-- [ ] Add document-level comments.-- [ ] Add layer comments.-- [ ] Add conflict-safe command sync.-- [ ] Add realtime coediting prototype.-- [ ] Add offline edits and sync reconciliation.--Tech:--- Yjs or Automerge-- Cloudflare Durable Objects-- WebSockets-- Command/event log--## 18. Performance--- [ ] Add performance benchmark suite.-- [ ] Benchmark 10, 50, 100, and 200 layer projects.-- [ ] Benchmark large 4K and print-size artboards.-- [ ] Add thumbnail cache.-- [ ] Add render cache invalidation.-- [ ] Add memory budget tracking.-- [ ] Add workerized export.-- [ ] Add workerized thumbnail generation.-- [ ] Add workerized image import.-- [ ] Add image downsample strategy for viewport rendering.-- [ ] Add full-resolution export path.--Tech:--- Playwright performance tests-- Browser Performance API-- OffscreenCanvas-- Web Workers-- WebGPU--## 19. Quality And Release Gates--- [ ] Add Playwright create/edit/export smoke test.-- [ ] Add Playwright upload image test.-- [ ] Add Playwright text editing test.-- [ ] Add Playwright layer ordering test.-- [ ] Add visual regression tests.-- [ ] Add renderer pixel tests.-- [ ] Add export pixel tests.-- [ ] Add accessibility checks.-- [ ] Add keyboard shortcut tests.-- [ ] Add file migration tests.-- [ ] Add crash recovery tests.-- [ ] Add CI jobs for image app.--Tech:--- Vitest-- Playwright-- Pixelmatch-- axe-core-- GitHub Actions--## Suggested Build Order--- [x] Stabilize tests and project schema.-- [x] Extract `packages/image-core`.-- [x] Implement command-based undo/redo.-- [ ] Move storage to IndexedDB/OPFS.-- [ ] Extract renderer from React canvas.-- [ ] Add renderer regression tests.-- [ ] Finish masks and selections.-- [ ] Finish adjustment layers.-- [ ] Finish photo tools.-- [ ] Build real template and asset library.-- [ ] Add brand kits and magic resize.-- [ ] Add AI image editing/generation.-- [ ] Add cloud save and sharing.-- [ ] Add collaboration.-diff --git a/apps/image/FEATURE_STATUS.md b/apps/image/FEATURE_STATUS.mddeleted file mode 100644index b9eb0796..00000000--- a/apps/image/FEATURE_STATUS.md+++ /dev/null@@ -1,151 +0,0 @@-# OpenReel Image β Feature Status Matrix--This document audits which tools, panels, and export formats in the-`apps/image` editor are **Fully Implemented**, **Partially Wired**, or-**UI-Only / Stub**.--> **Legend**->-> | Symbol | Meaning |-> |--------|---------|-> | β | Fully implemented β persists data, renders correctly, passes tests |-> | πΆ | Partially wired β UI exists, some logic works but missing features |-> | π² | UI-only / stub β panel rendered but no backing logic |-------## Toolbar Tools--| Tool | Status | Notes |-|------|--------|-------|-| Select / Move | β | Transform handles, multi-select, keyboard nudge |-| Crop | πΆ | Basic crop rect; no aspect-lock presets or straighten |-| Text | β | Create text layers with full style panel |-| Rectangle | β | Shape layer, fill/stroke, corner radius |-| Ellipse | β | Shape layer |-| Triangle | β | Shape layer |-| Polygon | β | Shape layer, configurable sides |-| Star | β | Shape layer, inner radius |-| Line / Arrow | β | Shape layer with stroke |-| Pen / Path | πΆ | Path drawing works; bezier handle editing absent |-| Brush | πΆ | UI and settings panel exist; stroke not persisted |-| Eraser | πΆ | Tool panel exists; raster edit not implemented |-| Paint Bucket | πΆ | Tool panel exists; flood-fill not wired |-| Gradient Fill | πΆ | Tool panel exists; gradient application incomplete |-| Clone Stamp | π² | Panel rendered; no backing logic |-| Healing Brush | π² | Panel rendered; no backing logic |-| Spot Healing | π² | Panel rendered; no backing logic |-| Dodge / Burn | π² | Panel rendered; no backing logic |-| Sponge | π² | Panel rendered; no backing logic |-| Smudge | π² | Panel rendered; no backing logic |-| Blur / Sharpen Brush | π² | Panel rendered; no backing logic |-| Rectangular Selection | πΆ | Selection state exists; fill/copy/cut not selection-aware |-| Elliptical Selection | π² | Not implemented |-| Lasso | π² | Not implemented |-| Magic Wand | π² | Not implemented |-| Liquify | π² | Panel rendered; no warp logic |-| Hand / Pan | β | Canvas pan with space-drag and middle-click |-| Zoom | β | Scroll wheel and Z-key shortcuts |-| Color Picker | β | Foreground / background colour wells |-------## Inspector Panels--| Panel | Status | Notes |-|-------|--------|-------|-| Transform | β | X/Y/W/H, rotation, flip, opacity |-| Alignment | β | Align/distribute relative to artboard or selection |-| Appearance (Blend Mode + Opacity) | β | Persists to layer |-| Effects β Shadow | β | Enabled, colour, blur, offset |-| Effects β Inner Shadow | β | Enabled, colour, blur, offset |-| Effects β Stroke | β | Enabled, colour, width, style |-| Effects β Glow | β | Enabled, colour, blur, intensity |-| Text (font, size, style) | β | All style options; no live canvas cursor |-| Shape (fill, gradient, noise, stroke) | β | Full shapeStyle controls |-| Artboard (size, background) | β | |-| Image Controls (brightness etc.) | β | Non-destructive filter object |-| Levels | β | Data model + UI; GPU render pending |-| Curves | β | Data model + UI; GPU render pending |-| Color Balance | β | Data model + UI; GPU render pending |-| Selective Color | β | Data model + UI; GPU render pending |-| Black & White | β | Data model + UI; GPU render pending |-| Photo Filter | β | Data model + UI; GPU render pending |-| Channel Mixer | β | Data model + UI; GPU render pending |-| Gradient Map | β | Data model + UI; GPU render pending |-| Posterize | β | Data model + UI; GPU render pending |-| Threshold | β | Data model + UI; GPU render pending |-| Mask | πΆ | Data model exists; mask painting not wired |-| Background Removal | β | Uses @imgly/background-removal locally |-| Selection Tools Panel | πΆ | Basic rect selection; no ellipse/lasso/wand |-| Brush Settings | πΆ | UI wired; brush strokes not persisted to layer |-| Eraser Settings | π² | UI only |-| Paint Bucket Settings | π² | UI only |-| Gradient Tool Settings | πΆ | UI partially wired |-| Clone Stamp Settings | π² | UI only |-| Healing Brush Settings | π² | UI only |-| Spot Healing Settings | π² | UI only |-| Dodge/Burn Settings | π² | UI only |-| Sponge Settings | π² | UI only |-| Smudge Settings | π² | UI only |-| Blur/Sharpen Settings | π² | UI only |-| Liquify Settings | π² | UI only |-| Crop Settings | πΆ | No aspect preset or perspective crop |-| Pen/Path Settings | πΆ | Path creation works; anchor editing missing |-| Transform Tool Panel | β | Free transform functional |-| Filter Presets | πΆ | Preset list UI; save/load not persisted |-| Color Harmony | π² | UI panel rendered; logic not wired |-| History Panel | πΆ | Snapshot history works; no command names shown |-------## Left Panel Tabs--| Tab | Status | Notes |-|-----|--------|-------|-| Layers | β | Add/remove/reorder/group/visibility/lock |-| Templates | πΆ | Hard-coded template placeholders; no real template data |-| Assets / Uploads | πΆ | Upload and display works; no asset library categories |-| Pages (Artboards) | β | Add/remove/rename/reorder artboards |-------## Export Formats--| Format | Status | Notes |-|--------|--------|-------|-| PNG | β | Full artboard render with transparency |-| JPEG | β | Quality setting applied; transparent bg becomes white |-| WebP | β | Quality setting applied |-| SVG | π² | Option present in UI; not implemented |-| PDF | π² | Option present in UI; not implemented |-------## Data & Storage--| Feature | Status | Notes |-|---------|--------|-------|-| Project create / load / close | β | Via Zustand store |-| Project schema validation (Zod) | β | Added in baseline stabilisation |-| Project migration (version field) | β | v0 β v1 migration added |-| Auto-save (localStorage) | πΆ | Saves on dirty, no IndexedDB yet |-| `.orimg` export (zip) | π² | Not implemented |-| Asset deduplication | π² | Not implemented |-| Blob URL lifecycle management | π² | Not implemented |-------## Test Coverage--| Area | Status |-|------|--------|-| Project creation | β |-| Layer add / remove / duplicate / reorder | β |-| Artboard add / remove / update | β |-| Export service (PNG / JPG / WebP) | β |-| Project schema validation | β |-| Project migration | β |-| React component tests | π² |-| Playwright E2E smoke tests | π² |-| Visual regression tests | π² |diff --git a/apps/image/PHOTOSHOP_FEATURE_PLAN.md b/apps/image/PHOTOSHOP_FEATURE_PLAN.mddeleted file mode 100644index cbbf0e5b..00000000--- a/apps/image/PHOTOSHOP_FEATURE_PLAN.md+++ /dev/null@@ -1,942 +0,0 @@-# OpenReel Image - Photoshop Feature Implementation Plan--## Executive Summary--This document outlines a comprehensive plan to implement Photoshop-equivalent features in OpenReel Image. Based on detailed research of Photoshop's feature set and audit of current OpenReel capabilities, this plan prioritizes features by impact and complexity.-------## Current State vs Photoshop Comparison--### Layer System--| Feature | Photoshop | OpenReel | Gap |-|---------|-----------|----------|-----|-| Pixel Layers | β | β (image) | - |-| Adjustment Layers | 16+ types | 11 types | 5+ missing |-| Fill Layers | Solid, Gradient, Pattern | Partial | Pattern fill |-| Shape Layers | β | β | - |-| Text Layers | β | β | - |-| Smart Objects | Full | Basic | Non-destructive editing |-| 3D Layers | β | β | Full feature |-| Video Layers | β | β | Full feature |--### Blend Modes--| Category | Photoshop | OpenReel | Missing |-|----------|-----------|----------|---------|-| Normal | Normal, Dissolve | Normal | Dissolve |-| Darken | 5 modes | 3 modes | Linear Burn, Darker Color |-| Lighten | 5 modes | 3 modes | Linear Dodge, Lighter Color |-| Contrast | 8 modes | 3 modes | Vivid/Linear/Pin Light, Hard Mix |-| Comparative | 4 modes | 3 modes | Divide |-| Component | 4 modes | 4 modes | - |-| **Total** | **27+** | **12** | **15+** |--### Selection Tools--| Tool | Photoshop | OpenReel | Priority |-|------|-----------|----------|----------|-| Rectangular Marquee | β | β (basic) | Enhance |-| Elliptical Marquee | β | β | High |-| Lasso (Free) | β | β | High |-| Polygonal Lasso | β | β | High |-| Magnetic Lasso | β | β | Medium |-| Magic Wand | β | β | High |-| Quick Selection | β | β | Medium |-| Object Selection | β | β | Medium |-| Select Subject (AI) | β | β (BG removal) | Partial |-| Color Range | β | β | Medium |--### Brush & Paint Tools--| Tool | Photoshop | OpenReel | Priority |-|------|-----------|----------|----------|-| Brush Tool | Full dynamics | Basic pen | Enhance |-| Pencil Tool | β | β | Medium |-| Eraser Tool | β | β | High |-| Clone Stamp | β | β | High |-| Healing Brush | β | β | High |-| Spot Healing | β | β | High |-| Patch Tool | β | β | Medium |-| Content-Aware Fill | β | β | High (AI) |-| Red Eye Tool | β | β | Low |--### Retouching Tools--| Tool | Photoshop | OpenReel | Priority |-|------|-----------|----------|----------|-| Dodge (Lighten) | β | β | High |-| Burn (Darken) | β | β | High |-| Sponge (Saturation) | β | β | Medium |-| Blur Brush | β | β | Medium |-| Sharpen Brush | β | β | Medium |-| Smudge Tool | β | β | Medium |--### Transform Tools--| Tool | Photoshop | OpenReel | Priority |-|------|-----------|----------|----------|-| Free Transform | β | β | - |-| Warp | β | β | High |-| Perspective | β | β | High |-| Puppet Warp | β | β | Low |-| Content-Aware Scale | β | β | Medium |-| Liquify | β | β | Medium |--### Layer Effects/Styles--| Effect | Photoshop | OpenReel | Priority |-|--------|-----------|----------|----------|-| Drop Shadow | Full | Basic | Enhance (spread, contour) |-| Inner Shadow | Full | Basic | Enhance (contour) |-| Outer Glow | Full | Basic | Enhance (contour, spread) |-| Inner Glow | β | β | High |-| Bevel & Emboss | β | β | High |-| Satin | β | β | Medium |-| Color Overlay | β | β | High |-| Gradient Overlay | β | β | High |-| Pattern Overlay | β | β | Medium |-| Stroke | Full | Basic | Enhance (position, gradient) |--### Filters--| Category | Photoshop | OpenReel | Gap |-|----------|-----------|----------|-----|-| Blur | 14+ types | 3 types | 11+ |-| Sharpen | 4 types | 1 type | 3 |-| Noise | 5 types | 1 type | 4 |-| Distort | 12+ types | 0 | All |-| Stylize | 8+ types | 0 | All |-| Render | 8+ types | 0 | All |-| Neural/AI | 10+ types | 1 (BG remove) | 9+ |--### Adjustments--| Adjustment | Photoshop | OpenReel | Priority |-|------------|-----------|----------|----------|-| Brightness/Contrast | β | β | - |-| Levels | β | β | Critical |-| Curves | β | β | Critical |-| Exposure | β | β | - |-| Vibrance | β | β | - |-| Hue/Saturation | β | β | - |-| Color Balance | β | β | High |-| Black & White | β | β | High |-| Photo Filter | β | β | Medium |-| Channel Mixer | β | β | Medium |-| Color Lookup (LUT) | β | β | High |-| Invert | β | β | - |-| Posterize | β | β | Medium |-| Threshold | β | β | Medium |-| Gradient Map | β | β | Medium |-| Selective Color | β | β | High |--### Masks--| Mask Type | Photoshop | OpenReel | Priority |-|-----------|-----------|----------|----------|-| Pixel Masks | β | β | Critical |-| Vector Masks | β | β | High |-| Clipping Masks | β | β | High |-| Quick Mask | β | β | Medium |--### Text Features--| Feature | Photoshop | OpenReel | Priority |-|---------|-----------|----------|----------|-| Basic Formatting | β | β | - |-| Paragraph Styles | β | β | - |-| OpenType Features | β | β | Medium |-| Variable Fonts | β | β | Low |-| Text on Path | β | β | High |-| Text in Shape | β | β | Medium |-| Warp Text | β | β | High |--### History & Actions--| Feature | Photoshop | OpenReel | Priority |-|---------|-----------|----------|----------|-| History Panel | β | Basic undo | Enhance |-| History Brush | β | β | Medium |-| Snapshots | β | β | Medium |-| Actions | β | β | High |-| Batch Processing | β | β | Medium |-------## Implementation Phases--### Phase 1: Critical Foundation (Core Editing)--**Priority: CRITICAL | Effort: Large**--#### 1.1 Selection System-```typescript-interface Selection {- id: string;- type: 'rectangular' | 'elliptical' | 'lasso' | 'polygonal' | 'magic-wand' | 'color-range';- path: Path2D | null;- bounds: BoundingBox;- feather: number;- antiAlias: boolean;- marching: boolean; // marching ants animation-}--interface SelectionStore {- activeSelection: Selection | null;- savedSelections: Selection[];- selectionMode: 'new' | 'add' | 'subtract' | 'intersect';-}-```--**Tools to implement:**-- Rectangular Marquee with feather, anti-alias-- Elliptical Marquee-- Lasso (freehand)-- Polygonal Lasso-- Magic Wand (tolerance-based color selection)--#### 1.2 Layer Masks-```typescript-interface LayerMask {- id: string;- type: 'pixel' | 'vector';- data: ImageData | Path2D;- enabled: boolean;- linked: boolean; // linked to layer transform- density: number; // 0-100%- feather: number;-}--interface Layer {- // ... existing- mask: LayerMask | null;- clippingMask: boolean; // clips to layer below-}-```--#### 1.3 Levels & Curves Adjustments-```typescript-interface LevelsAdjustment {- channel: 'rgb' | 'red' | 'green' | 'blue';- inputBlack: number; // 0-255- inputWhite: number; // 0-255- gamma: number; // 0.1-10- outputBlack: number; // 0-255- outputWhite: number; // 0-255-}--interface CurvesAdjustment {- channel: 'rgb' | 'red' | 'green' | 'blue';- points: Array<{ input: number; output: number }>; // up to 14 points-}-```--#### 1.4 History System Enhancement-```typescript-interface HistoryState {- id: string;- name: string;- timestamp: number;- snapshot: ProjectSnapshot;- thumbnail?: string;-}--interface HistoryStore {- states: HistoryState[];- currentIndex: number;- maxStates: number; // default 50- snapshots: Map<string, HistoryState>; // named snapshots-}-```-------### Phase 2: Essential Tools (Retouching & Paint)--**Priority: HIGH | Effort: Large**--#### 2.1 Brush Engine Enhancement-```typescript-interface BrushSettings {- size: number;- hardness: number; // 0-100%- opacity: number; // 0-100%- flow: number; // 0-100%- spacing: number; // 1-1000%- angle: number;- roundness: number; // 0-100%-- // Dynamics- sizeDynamics: BrushDynamics;- opacityDynamics: BrushDynamics;- flowDynamics: BrushDynamics;-- // Shape- tip: 'round' | 'square' | 'custom';- customTip?: ImageData;-- // Transfer- buildUp: boolean;- smoothing: number; // 0-100%-}--interface BrushDynamics {- control: 'off' | 'fade' | 'pen-pressure' | 'pen-tilt' | 'rotation';- minValue: number;- jitter: number;-}-```--#### 2.2 Clone Stamp & Healing-```typescript-interface CloneStampTool {- sourcePoint: { x: number; y: number } | null;- sourceLayer: string | null;- aligned: boolean;- sampleMode: 'current' | 'current-below' | 'all';- blendMode: BlendMode;- opacity: number;-}--interface HealingBrushTool extends CloneStampTool {- healingMode: 'normal' | 'content-aware' | 'proximity';- diffusion: number; // for high-frequency areas-}--interface SpotHealingTool {- type: 'proximity-match' | 'content-aware' | 'create-texture';- sampleAllLayers: boolean;-}-```--#### 2.3 Eraser Tool-```typescript-interface EraserTool {- mode: 'brush' | 'pencil' | 'block';- size: number;- hardness: number;- opacity: number;- flow: number;- eraseToHistory: boolean; // restore from history state-}-```--#### 2.4 Dodge, Burn, Sponge-```typescript-interface DodgeBurnTool {- type: 'dodge' | 'burn';- range: 'shadows' | 'midtones' | 'highlights';- exposure: number; // 0-100%- protectTones: boolean;-}--interface SpongeTool {- mode: 'saturate' | 'desaturate';- flow: number; // 0-100%- vibrance: boolean; // protect skin tones-}-```-------### Phase 3: Advanced Effects & Filters--**Priority: HIGH | Effort: Medium-Large**--#### 3.1 Additional Blend Modes-```typescript-type BlendMode =- // Existing- | 'normal' | 'multiply' | 'screen' | 'overlay'- | 'darken' | 'lighten' | 'color-dodge' | 'color-burn'- | 'hard-light' | 'soft-light' | 'difference' | 'exclusion'-- // New - Darken Group- | 'linear-burn' | 'darker-color'-- // New - Lighten Group- | 'linear-dodge' | 'lighter-color'-- // New - Contrast Group- | 'vivid-light' | 'linear-light' | 'pin-light' | 'hard-mix'-- // New - Other- | 'dissolve' | 'divide';-```--#### 3.2 Layer Style Enhancements-```typescript-interface DropShadow {- enabled: boolean;- blendMode: BlendMode;- color: string;- opacity: number;- angle: number;- distance: number;- spread: number; // NEW: 0-100%- size: number;- contour: ContourCurve; // NEW: custom curve- antiAlias: boolean;- noise: number;- layerKnockout: boolean;-}--interface BevelEmboss {- enabled: boolean;- style: 'outer-bevel' | 'inner-bevel' | 'emboss' | 'pillow-emboss' | 'stroke-emboss';- technique: 'smooth' | 'chisel-hard' | 'chisel-soft';- depth: number;- direction: 'up' | 'down';- size: number;- soften: number;-- // Shading- angle: number;- altitude: number;- highlightMode: BlendMode;- highlightColor: string;- highlightOpacity: number;- shadowMode: BlendMode;- shadowColor: string;- shadowOpacity: number;-- // Contour- gloss: ContourCurve;- contour: ContourCurve;- antiAlias: boolean;-}--interface InnerGlow {- enabled: boolean;- blendMode: BlendMode;- opacity: number;- noise: number;- color: string | GradientDef;- technique: 'softer' | 'precise';- source: 'center' | 'edge';- choke: number;- size: number;- contour: ContourCurve;- antiAlias: boolean;- range: number;- jitter: number;-}--interface ColorOverlay {- enabled: boolean;- blendMode: BlendMode;- color: string;- opacity: number;-}--interface GradientOverlay {- enabled: boolean;- blendMode: BlendMode;- opacity: number;- gradient: GradientDef;- style: 'linear' | 'radial' | 'angle' | 'reflected' | 'diamond';- alignWithLayer: boolean;- angle: number;- scale: number;- reverse: boolean;- dither: boolean;-}--interface PatternOverlay {- enabled: boolean;- blendMode: BlendMode;- opacity: number;- pattern: PatternDef;- scale: number;- linkWithLayer: boolean;-}--interface Satin {- enabled: boolean;- blendMode: BlendMode;- color: string;- opacity: number;- angle: number;- distance: number;- size: number;- contour: ContourCurve;- antiAlias: boolean;- invert: boolean;-}-```--#### 3.3 Filter System-```typescript-// Blur Filters-interface GaussianBlur { radius: number; }-interface MotionBlur { angle: number; distance: number; }-interface RadialBlur { amount: number; method: 'spin' | 'zoom'; quality: 'draft' | 'better' | 'best'; center: Point; }-interface LensBlur { radius: number; irisShape: number; irisRotation: number; iriscurvature: number; highlight: { brightness: number; threshold: number; }; }-interface SurfaceBlur { radius: number; threshold: number; }-interface TiltShift { blur: number; focusLine: { start: Point; end: Point }; transition: number; }--// Sharpen Filters-interface UnsharpMask { amount: number; radius: number; threshold: number; }-interface SmartSharpen { amount: number; radius: number; removeBlur: 'gaussian' | 'lens' | 'motion'; noiseReduction: number; }-interface HighPass { radius: number; } // Applied with overlay blend mode--// Distort Filters-interface Spherize { amount: number; mode: 'normal' | 'horizontal' | 'vertical'; }-interface Pinch { amount: number; }-interface Twirl { angle: number; }-interface Wave { generators: number; wavelength: { min: number; max: number }; amplitude: { min: number; max: number }; scale: { x: number; y: number }; type: 'sine' | 'triangle' | 'square'; }-interface Ripple { amount: number; size: 'small' | 'medium' | 'large'; }-interface ZigZag { amount: number; ridges: number; style: 'around-center' | 'out-from-center' | 'pond-ripples'; }-interface PolarCoordinates { mode: 'rectangular-to-polar' | 'polar-to-rectangular'; }--// Noise Filters-interface AddNoise { amount: number; distribution: 'uniform' | 'gaussian'; monochromatic: boolean; }-interface ReduceNoise { strength: number; preserveDetails: number; reduceColorNoise: number; sharpenDetails: number; }-interface DustScratches { radius: number; threshold: number; }-interface Median { radius: number; }--// Stylize Filters-interface OilPaint { stylization: number; cleanliness: number; scale: number; bristleDetail: number; angularDirection: number; }-interface Emboss { angle: number; height: number; amount: number; }-interface FindEdges { /* no params */ }-interface Wind { method: 'wind' | 'blast' | 'stagger'; direction: 'left' | 'right'; }--// Render Filters-interface Clouds { /* uses foreground/background colors */ }-interface DifferenceClouds { /* blends with existing content */ }-interface Fibers { variance: number; strength: number; }-interface LensFlare { brightness: number; flareCenter: Point; lensType: '50-300mm-zoom' | '35mm-prime' | '105mm-prime' | 'movie-prime'; }-```--#### 3.4 Liquify Tool-```typescript-interface LiquifySettings {- brushSize: number;- brushDensity: number;- brushPressure: number;- brushRate: number;-- // Face-Aware- faceAware: boolean;- faceControls?: {- eyeSize: number;- eyeHeight: number;- eyeWidth: number;- eyeTilt: number;- eyeDistance: number;- noseHeight: number;- noseWidth: number;- mouthSmile: number;- mouthHeight: number;- mouthWidth: number;- jawline: number;- faceWidth: number;- forehead: number;- chinHeight: number;- };-}--type LiquifyTool =- | 'warp' // Forward Warp- | 'reconstruct' // Restore- | 'smooth' // Smooth- | 'twirl-cw' // Twirl Clockwise- | 'twirl-ccw' // Twirl Counter-Clockwise- | 'pucker' // Contract- | 'bloat' // Expand- | 'push-left' // Shift Pixels- | 'freeze' // Protect area- | 'thaw'; // Unprotect area-```-------### Phase 4: Color & Adjustments--**Priority: HIGH | Effort: Medium**--#### 4.1 Advanced Adjustments-```typescript-interface ColorBalance {- shadows: { cyan_red: number; magenta_green: number; yellow_blue: number };- midtones: { cyan_red: number; magenta_green: number; yellow_blue: number };- highlights: { cyan_red: number; magenta_green: number; yellow_blue: number };- preserveLuminosity: boolean;-}--interface SelectiveColor {- colors: 'reds' | 'yellows' | 'greens' | 'cyans' | 'blues' | 'magentas' | 'whites' | 'neutrals' | 'blacks';- cyan: number; // -100 to +100- magenta: number;- yellow: number;- black: number;- method: 'relative' | 'absolute';-}--interface BlackWhite {- reds: number;- yellows: number;- greens: number;- cyans: number;- blues: number;- magentas: number;- tint: { enabled: boolean; hue: number; saturation: number };-}--interface PhotoFilter {- filter: 'warming-85' | 'warming-81' | 'cooling-80' | 'cooling-82' | 'custom';- color: string;- density: number;- preserveLuminosity: boolean;-}--interface ChannelMixer {- outputChannel: 'red' | 'green' | 'blue';- red: number;- green: number;- blue: number;- constant: number;- monochrome: boolean;-}--interface ColorLookup {- lutFile: string; // .cube, .3dl, .look file- lutData: Float32Array; // 3D LUT data- strength: number;-}--interface GradientMap {- gradient: GradientDef;- dither: boolean;- reverse: boolean;-}--interface Posterize {- levels: number; // 2-255-}--interface Threshold {- level: number; // 0-255-}-```--#### 4.2 Histogram & Info Panel-```typescript-interface Histogram {- data: {- red: Uint32Array;- green: Uint32Array;- blue: Uint32Array;- luminosity: Uint32Array;- };- clipping: {- shadowsClipped: number; // percentage- highlightsClipped: number;- };- statistics: {- mean: number;- stdDev: number;- median: number;- pixelCount: number;- };-}--interface ColorInfo {- rgb: { r: number; g: number; b: number };- hsb: { h: number; s: number; b: number };- lab: { l: number; a: number; b: number };- cmyk: { c: number; m: number; y: number; k: number };- hex: string;-}-```-------### Phase 5: Text & Vector--**Priority: MEDIUM | Effort: Medium**--#### 5.1 Text on Path-```typescript-interface TextOnPath {- path: Path2D | SVGPath;- startOffset: number; // 0-100%- alignment: 'left' | 'center' | 'right';- orientation: 'upright' | 'tangent';- flipText: boolean;-}-```--#### 5.2 Warp Text-```typescript-type WarpStyle =- | 'arc' | 'arc-lower' | 'arc-upper' | 'arch' | 'bulge'- | 'shell-lower' | 'shell-upper' | 'flag' | 'wave' | 'fish'- | 'rise' | 'fish-eye' | 'inflate' | 'squeeze' | 'twist';--interface WarpText {- style: WarpStyle;- orientation: 'horizontal' | 'vertical';- bend: number; // -100 to +100- horizontalDistortion: number;- verticalDistortion: number;-}-```--#### 5.3 OpenType Features-```typescript-interface OpenTypeFeatures {- ligatures: 'none' | 'standard' | 'discretionary' | 'historical';- contextualAlternates: boolean;- stylisticAlternates: boolean;- swash: boolean;- titlingAlternates: boolean;- ordinals: boolean;- fractions: boolean;- slashedZero: boolean;-}-```-------### Phase 6: Automation & Workflow--**Priority: MEDIUM | Effort: Large**--#### 6.1 Actions System-```typescript-interface Action {- id: string;- name: string;- steps: ActionStep[];- shortcut?: string;-}--interface ActionStep {- id: string;- type: string; // tool/filter/adjustment type- parameters: Record<string, unknown>;- enabled: boolean;- dialog: boolean; // show dialog on playback-}--interface ActionSet {- id: string;- name: string;- actions: Action[];-}--interface ActionStore {- sets: ActionSet[];- recording: boolean;- currentAction: Action | null;-}-```--#### 6.2 Batch Processing-```typescript-interface BatchProcess {- source: 'folder' | 'open-files';- sourcePath?: string;- includeSubfolders: boolean;- action: string;- destination: 'same' | 'folder' | 'save-close';- destinationPath?: string;- fileNaming: {- template: string;- startNumber: number;- compatibility: 'windows' | 'mac' | 'unix';- };- errors: 'stop' | 'log' | 'skip';-}-```--#### 6.3 Presets System-```typescript-interface PresetLibrary {- brushes: BrushPreset[];- gradients: GradientPreset[];- patterns: PatternPreset[];- layerStyles: LayerStylePreset[];- filters: FilterPreset[];- adjustments: AdjustmentPreset[];- tools: ToolPreset[];- exports: ExportPreset[];-}-```-------## Implementation Priority Matrix--### Tier 1: Critical (Implement First)-1. **Selection Tools** - Rectangular, Elliptical, Lasso, Magic Wand-2. **Layer Masks** - Pixel masks with feather, density-3. **Levels Adjustment** - Input/output levels, gamma-4. **Curves Adjustment** - Multi-point curve editing-5. **Eraser Tool** - Basic erasing with brush settings-6. **Enhanced History** - Visual history panel, snapshots--### Tier 2: High Priority-1. **Clone Stamp** - Source point, aligned mode-2. **Healing Brush** - Texture blending-3. **Spot Healing** - Content-aware healing-4. **Dodge/Burn** - Exposure-based lightening/darkening-5. **Additional Blend Modes** - Complete the 27 modes-6. **Layer Effects** - Bevel & Emboss, Inner Glow, Overlays-7. **Color Balance** - Shadows/Midtones/Highlights-8. **Selective Color** - CMYK-based color targeting-9. **Warp Transform** - Mesh-based warping-10. **Text on Path** - Path-following text--### Tier 3: Medium Priority-1. **Blur Filters** - Lens blur, surface blur, tilt-shift-2. **Sharpen Filters** - Unsharp mask, smart sharpen-3. **Distort Filters** - Spherize, pinch, twirl, wave-4. **Liquify** - Face-aware warping-5. **Noise Filters** - Add/reduce noise-6. **Vector Masks** - Path-based masks-7. **Clipping Masks** - Clip to layer below-8. **Color Lookup (LUT)** - 3D LUT support-9. **Gradient Map** - Tone-to-color mapping-10. **Warp Text** - 15 warp styles--### Tier 4: Lower Priority-1. **Stylize Filters** - Oil paint, emboss, find edges-2. **Render Filters** - Clouds, lens flare-3. **Actions System** - Record and playback-4. **Batch Processing** - Multi-file automation-5. **Variable Fonts** - Axis controls-6. **OpenType Features** - Ligatures, alternates-7. **Content-Aware Fill** - AI-powered fill (requires ML)-8. **Neural Filters** - AI-powered effects (requires ML)-9. **Puppet Warp** - Pin-based warping-10. **3D Layers** - Basic 3D support-------## Technical Architecture--### Canvas Rendering Pipeline-```-Layer Stack- β-For each layer:- Apply masks (pixel/vector)- β- Apply clipping mask (if enabled)- β- Render layer content- β- Apply layer effects (shadow, glow, etc.)- β- Apply blend mode with layer below- β-Composite to canvas-```--### Filter Processing Pipeline-```-Selection (optional)- β-Source pixels- β-Apply filter kernel/algorithm- β-Apply feather (if selection)- β-Blend with original (based on filter opacity)- β-Output pixels-```--### Recommended File Structure-```-apps/image/src/-βββ tools/-β βββ selection/-β β βββ rectangular-marquee.ts-β β βββ elliptical-marquee.ts-β β βββ lasso.ts-β β βββ polygonal-lasso.ts-β β βββ magic-wand.ts-β β βββ color-range.ts-β βββ paint/-β β βββ brush.ts-β β βββ eraser.ts-β β βββ clone-stamp.ts-β β βββ healing-brush.ts-β β βββ spot-healing.ts-β βββ retouch/-β β βββ dodge.ts-β β βββ burn.ts-β β βββ sponge.ts-β β βββ smudge.ts-β βββ transform/-β βββ warp.ts-β βββ perspective.ts-β βββ liquify.ts-βββ filters/-β βββ blur/-β βββ sharpen/-β βββ distort/-β βββ noise/-β βββ stylize/-β βββ render/-βββ adjustments/-β βββ levels.ts-β βββ curves.ts-β βββ color-balance.ts-β βββ selective-color.ts-β βββ channel-mixer.ts-β βββ color-lookup.ts-βββ masks/-β βββ pixel-mask.ts-β βββ vector-mask.ts-β βββ clipping-mask.ts-βββ effects/-β βββ blend-modes.ts-β βββ layer-styles.ts-β βββ contours.ts-βββ automation/- βββ actions.ts- βββ history.ts- βββ presets.ts-```-------## Estimated Effort Summary--| Phase | Features | Complexity | Files |-|-------|----------|------------|-------|-| Phase 1 | Selection, Masks, Levels, Curves, History | High | 15-20 |-| Phase 2 | Paint Tools, Retouching | High | 12-15 |-| Phase 3 | Blend Modes, Effects, Filters | Medium-High | 25-30 |-| Phase 4 | Color Adjustments, Histogram | Medium | 10-12 |-| Phase 5 | Text, Vector | Medium | 8-10 |-| Phase 6 | Actions, Automation | Medium-High | 10-12 |--**Total: 80-100 new/modified files**-------## Next Steps--1. **Start with Phase 1** - Build foundation with selection system and masks-2. **Create tool architecture** - Abstract base classes for tool types-3. **Implement WebGL/WebGPU shaders** - For filter processing performance-4. **Build UI components** - Inspector panels for new features-5. **Add keyboard shortcuts** - Standard Photoshop shortcuts where possible-6. **Write tests** - Unit tests for algorithms, integration tests for tools-------## Resources--- [Adobe Photoshop User Guide](https://helpx.adobe.com/photoshop/user-guide.html)-- [Photoshop Blend Mode Math](https://www.w3.org/TR/compositing-1/#blending)-- [Image Processing Algorithms](https://homepages.inf.ed.ac.uk/rbf/HIPR2/)-- [WebGL Fundamentals](https://webglfundamentals.org/)diff --git a/apps/web/DEPLOY_CHECKLIST.md b/apps/web/DEPLOY_CHECKLIST.mddeleted file mode 100644index 992f0e05..00000000--- a/apps/web/DEPLOY_CHECKLIST.md+++ /dev/null@@ -1,151 +0,0 @@-# Deployment Checklist for app.openreel.video--## Pre-Deployment--- [ ] Build passes successfully: `pnpm build`-- [ ] All tests pass: `pnpm test:run`-- [ ] TypeScript checks pass: `pnpm typecheck`-- [ ] Git repository is clean or changes are committed--## Cloudflare Setup (First Time Only)--### 1. Install and Authenticate Wrangler--```bash-cd apps/web-npx wrangler login-```--### 2. Create Cloudflare Pages Project--```bash-npx wrangler pages project create openreel-```--### 3. Configure Custom Domain--In Cloudflare Dashboard:-1. Go to **Pages** β **openreel** β **Custom domains**-2. Click **Set up a custom domain**-3. Enter: `app.openreel.video`-4. Cloudflare will automatically configure DNS--**Important**: Ensure your `openreel.video` domain is already added to Cloudflare.--## Deployment Steps--### Option 1: Quick Deploy (from root)--```bash-pnpm deploy-```--### Option 2: Manual Deploy (from apps/web)--```bash-pnpm build-pnpm deploy-```--### Option 3: Preview Deploy--```bash-pnpm deploy:preview-```--## Post-Deployment Verification--### 1. Check Deployment Status--```bash-npx wrangler pages deployment list --project-name=openreel-```--### 2. Verify Site Access--- [ ] Visit https://app.openreel.video-- [ ] Site loads without errors-- [ ] No console errors in browser DevTools--### 3. Verify Headers--Open DevTools β Network β Select any request β Check Response Headers:-- [ ] `Cross-Origin-Opener-Policy: same-origin`-- [ ] `Cross-Origin-Embedder-Policy: require-corp`--### 4. Test Core Features--- [ ] Import media file-- [ ] Add emoji to timeline-- [ ] Apply transform (move, scale, rotate)-- [ ] Apply entry/exit transitions-- [ ] Export video (this tests WebCodecs and FFmpeg.wasm)-- [ ] Download exported video--### 5. Test Routing--- [ ] Direct URL access works (not just homepage)-- [ ] Browser back/forward buttons work--## Troubleshooting--### Deployment Failed--```bash-# Check authentication-npx wrangler whoami--# Re-authenticate if needed-npx wrangler logout-npx wrangler login--# Try again-pnpm deploy-```--### SharedArrayBuffer Issues--If you see "SharedArrayBuffer is not defined":-1. Check headers in Network tab-2. Hard reload browser (Cmd+Shift+R / Ctrl+Shift+F5)-3. Clear site data in DevTools β Application β Clear storage--### 404 on Routes--If direct URLs show 404:-1. Verify `_redirects` file exists in `dist/`-2. Check Cloudflare Pages β Functions tab-3. Redeploy if needed--## Rollback--If deployment has issues:--```bash-# List deployments-npx wrangler pages deployment list --project-name=openreel--# The previous deployment is still accessible at its unique URL-# You can promote it back in Cloudflare Dashboard-```--Go to Cloudflare Dashboard β Pages β openreel β Deployments β Select previous deployment β Rollback--## Environment-Specific Notes--### Production-- Deployed to: `app.openreel.video`-- Branch: `main`-- Command: `pnpm deploy`--### Preview-- Deployed to: `[unique-id].openreel.pages.dev`-- Branch: `preview`-- Command: `pnpm deploy:preview`--## Support--For deployment issues:-- Check logs: Cloudflare Pages β openreel β Deployments β [Latest] β View logs-- Wrangler docs: https://developers.cloudflare.com/pages/-- OpenReel issues: https://github.com/Augani/openreel-video/issues