Transform a series of photographs containing a recurring object into captivating animated sequences where the focal point remains perfectly still.
FocalFlow is a browser-based creative tool that empowers artists and photographers to create unique animations from photo series. By keeping a recurring element (like a neon sign, landmark, or any consistent object) stationary across frames, FocalFlow creates mesmerizing animations where the world moves around your chosen focal point.
- Expandable Canvas - Work on a large grid where images can be positioned freely around your focal point
- Smart Alignment - Experimental automatic detection or easy manual marking with grid locks
- Flexible Image Handling - Support for any resolution, up to 50 images
- Interactive Controls - Zoom, pan, and precisely position each image
- Animation Modes - Quick mode for fast results, Precision mode for pixel-perfect alignment
- Motion Trails - Add ghosted versions of previous frames for artistic effect
- Perspective Correction - Auto-fix tilted shots
- Export Options - Create GIFs or MP4 videos of your animations
- React with TypeScript for type-safe component development
- Vite for fast builds and hot module replacement
- TailwindCSS for modern, responsive styling
- Canvas API for image manipulation
src/
├── components/ # UI components
├── core/ # Image processing and alignment engine
├── utils/ # Helper functions
└── types/ # TypeScript interfaces
- Node.js (v18 or higher)
- npm or yarn
- Clone the repository:
git clone <repository-url>
cd FocalFlow- Install dependencies:
npm install- Start the development server:
npm run dev- Open your browser and navigate to
http://localhost:5173
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production buildnpm run lint- Run ESLint
- ImageUploader - Handles file uploads and image loading
- ImageCanvas - Displays images with zoom/pan capabilities
- AlignmentEngine - Core logic for image registration
- FeatureDetector - Detects and matches features between images
- Multiple alignment algorithms (SIFT, ORB, etc.)
- Manual control point selection
- Batch processing capabilities
- Export in multiple formats
- Alignment history and undo/redo
MIT