A powerful, intuitive web application for AI-powered image editing and thumbnail generation
AI Thumbnail Editor is a modern, responsive web application that leverages Google's Gemini AI to provide intelligent image editing capabilities. Upload images through drag-and-drop or clipboard paste, then use natural language prompts to transform your visuals with AI-powered editing.
![]()
- ๐ผ๏ธ Smart Upload System - Support for drag-and-drop file upload and clipboard paste functionality
- ๐ค AI-Powered Editing - Natural language image manipulation using Google Gemini AI
- ๐ Iterative Workflow - Chain multiple edits together for complex transformations
- ๐ Visual History - Navigate through your editing timeline with thumbnail previews
- โก Real-time Processing - Fast, responsive interface with live feedback
- ๐ฑ Responsive Design - Beautiful gradient UI that works across all devices
- ๐จ Professional Interface - Clean, modern design with smooth animations
- Content Creation - Transform images for social media, blogs, and marketing materials
- Design Iteration - Rapidly prototype and refine visual concepts
- Thumbnail Generation - Create compelling thumbnails for videos and articles
- Image Enhancement - Improve existing images with AI-powered modifications
- Creative Exploration - Experiment with different styles and effects
- Next.js 15.5.4 - React framework with App Router and Turbopack
- React 19.1.0 - Latest React with concurrent features
- TypeScript 5.0 - Type-safe development
- Tailwind CSS 4.0 - Utility-first CSS framework
- Google Gemini AI - Advanced image generation and editing
- Next.js API Routes - Serverless function handling
- File Processing - Canvas API for thumbnail generation
- ESLint - Code linting and formatting
- Turbopack - Ultra-fast bundler for development
- Node.js 18.0 or higher
- npm or yarn package manager
- Google Gemini API key
-
Clone the repository
git clone https://github.com/YourUsername/ai-thumbnail-editor.git cd ai-thumbnail-editor -
Install dependencies
npm install
-
Configure environment variables
cp .env.example .env.local
Add your Google Gemini API key to
.env.local:GEMINI_API_KEY=your_api_key_here
-
Start development server
npm run dev
-
Open in browser Navigate to
http://localhost:3000
-
Upload an Image
- Click the "Upload Thumbnail" button to select a file
- Or press
Ctrl+V(Windows/Linux) orCmd+V(Mac) to paste from clipboard - Supported formats: JPG, PNG, GIF, WebP
-
Edit with AI
- Type natural language instructions in the text input
- Examples: "change background to blue", "add text saying 'Hello'", "make it more colorful"
- Click "Process Image" to apply changes
-
Iterate and Refine
- The processed image becomes your new starting point
- Continue editing with additional prompts
- Use the history strip to navigate between versions
-
Manage History
- View all previous versions in the bottom timeline
- Click any thumbnail to restore that version
- History automatically manages the editing stack
- Be Specific: More detailed prompts yield better results
- Iterate Gradually: Make small changes for better control
- Use History: Experiment freely knowing you can always go back
- Clipboard Workflow: Copy images from other apps and paste directly
ai-thumbnail-editor/
โโโ src/
โ โโโ app/
โ โ โโโ api/
โ โ โ โโโ process/
โ โ โ โโโ route.ts # AI processing endpoint
โ โ โโโ globals.css # Global styles
โ โ โโโ layout.tsx # Root layout component
โ โ โโโ page.tsx # Main application page
โโโ assets/ # Static assets and images
โโโ docs/ # Additional documentation
โโโ public/ # Public static files
โโโ .env.local # Environment variables (create from .env.example)
โโโ .env.example # Environment template
โโโ package.json # Dependencies and scripts
โโโ tailwind.config.js # Tailwind CSS configuration
โโโ tsconfig.json # TypeScript configuration
โโโ README.md # This file
Process an image with AI-powered editing.
Request:
image(File): Image file to processprompt(string): Natural language editing instructions
Response:
{
"success": true,
"generatedImage": "data:image/png;base64,...",
"imageSize": 12345,
"prompt": "user prompt",
"result": "Image generation completed"
}- Connect repository to Vercel
- Add environment variables in Vercel dashboard
- Deploy - Automatic deployments on every push
The application can be deployed on any platform supporting Next.js:
- Netlify
- Railway
- DigitalOcean App Platform
- AWS Amplify
- Optimized Thumbnails - Canvas-based compression for fast loading
- Smart Caching - Efficient state management and API caching
- Responsive Images - Automatic image optimization
- Fast Bundling - Turbopack for lightning-fast development builds
- Client-side Processing - Thumbnails generated locally
- Secure API Communication - HTTPS-only in production
- No Image Storage - Images processed in memory only
- Environment Variables - Secure API key management
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Use TypeScript for all new code
- Follow the existing code formatting
- Add comments for complex logic
- Test your changes thoroughly
This project is licensed under the MIT License - see the LICENSE file for details.
Hitarth - Full Stack Developer
- Google Gemini AI team for the powerful image generation API
- Next.js team for the excellent React framework
- Tailwind CSS for the utility-first styling approach
- The open-source community for inspiration and tools
- Batch processing for multiple images
- Custom AI model integration
- Advanced editing templates
- User authentication and image saving
- Collaboration features
- Mobile app version