Edit Anything is an AI-powered text editing tool that lets you extract, modify, and recompose text in any image while preserving the original design.
- Automatic text detection with bounding box visualization
- Intelligent consolidation groups related text blocks by color
- Font property analysis detects size, family, color, alignment, and rotation
- Two-pass text removal ensures complete background cleaning
- Click-to-edit any detected text inline
- Drag & drop text boxes to reposition them
- Resize handles for adjusting text box dimensions
- Real-time preview of all modifications
- High-quality composite downloads at original resolution
- Perfect text rendering matches preview exactly
- PNG format with transparency support
- Consistent font scaling between preview and export
- Upload an image containing text
- Detection - AI automatically finds and analyzes all text
- Cleaning - Background image generated with text removed
- Editing - Modify, move, resize, or rewrite any text
- Export - Download the final composed image
Fine-tune of Resnet-50 on custom synthetic datadaset (18 fonts, 9k samples).
npm install
npm run devRequires a Google AI API key in your environment variables.
- Clone the repository
- Install dependencies:
npm install - Create a
.envfile with your API key:API_KEY=your_gemini_api_key_here - Start the development server:
npm run dev
edit-anything/
├── src/
│ ├── components/ # React components
│ │ └── OverlayComponent.tsx
│ └── services/ # Business logic
│ ├── aiService.ts # AI/LLM operations
│ └── exportService.ts # Image export functionality
├── App.tsx # Main application
└── README.md

