Skip to content

About

๐ŸŽจ AI-powered thumbnail editor with natural language editing, clipboard paste support, and visual history. Built with Next.js, React, TypeScript, and Google Gemini AI.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Latest commit

ย 

History

10 Commits

Folders and files

Repository files navigation

โœจ AI Thumbnail Editor

A powerful, intuitive web application for AI-powered image editing and thumbnail generation

Next.js React TypeScript Tailwind CSS Google AI

๐Ÿš€ Overview

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. Project Screenshot

โœจ Key Features

  • ๐Ÿ–ผ๏ธ 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

๐ŸŽฏ Use Cases

  • 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

๐Ÿ› ๏ธ Technology Stack

Frontend

  • 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

Backend & AI

  • Google Gemini AI - Advanced image generation and editing
  • Next.js API Routes - Serverless function handling
  • File Processing - Canvas API for thumbnail generation

Development Tools

  • ESLint - Code linting and formatting
  • Turbopack - Ultra-fast bundler for development

๐Ÿ“ฆ Installation

Prerequisites

  • Node.js 18.0 or higher
  • npm or yarn package manager
  • Google Gemini API key

Setup Steps

  1. Clone the repository

    git clone https://github.com/YourUsername/ai-thumbnail-editor.git
    cd ai-thumbnail-editor
  2. Install dependencies

    npm install
  3. Configure environment variables

    cp .env.example .env.local

    Add your Google Gemini API key to .env.local:

    GEMINI_API_KEY=your_api_key_here
  4. Start development server

    npm run dev
  5. Open in browser Navigate to http://localhost:3000

๐ŸŽฎ Usage Guide

Getting Started

  1. Upload an Image

    • Click the "Upload Thumbnail" button to select a file
    • Or press Ctrl+V (Windows/Linux) or Cmd+V (Mac) to paste from clipboard
    • Supported formats: JPG, PNG, GIF, WebP
  2. 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
  3. Iterate and Refine

    • The processed image becomes your new starting point
    • Continue editing with additional prompts
    • Use the history strip to navigate between versions
  4. Manage History

    • View all previous versions in the bottom timeline
    • Click any thumbnail to restore that version
    • History automatically manages the editing stack

Pro Tips

  • 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

๐Ÿ“ Project Structure

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

๐Ÿ”ง API Reference

POST /api/process

Process an image with AI-powered editing.

Request:

  • image (File): Image file to process
  • prompt (string): Natural language editing instructions

Response:

{
  "success": true,
  "generatedImage": "data:image/png;base64,...",
  "imageSize": 12345,
  "prompt": "user prompt",
  "result": "Image generation completed"
}

๐Ÿš€ Deployment

Vercel (Recommended)

  1. Connect repository to Vercel
  2. Add environment variables in Vercel dashboard
  3. Deploy - Automatic deployments on every push

Other Platforms

The application can be deployed on any platform supporting Next.js:

  • Netlify
  • Railway
  • DigitalOcean App Platform
  • AWS Amplify

๐Ÿ“Š Performance Features

  • 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

๐Ÿ”’ Privacy & Security

  • 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

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Development Workflow

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Commit your changes (git commit -m 'Add amazing feature')
  5. Push to the branch (git push origin feature/amazing-feature)
  6. Open a Pull Request

Code Style

  • Use TypeScript for all new code
  • Follow the existing code formatting
  • Add comments for complex logic
  • Test your changes thoroughly

๐Ÿ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ‘จโ€๐Ÿ’ป Developer

Hitarth - Full Stack Developer

๐Ÿ™ Acknowledgments

  • 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

๐Ÿ“ˆ Roadmap

  • Batch processing for multiple images
  • Custom AI model integration
  • Advanced editing templates
  • User authentication and image saving
  • Collaboration features
  • Mobile app version

Built with โค๏ธ using Next.js and Google Gemini AI

About

๐ŸŽจ AI-powered thumbnail editor with natural language editing, clipboard paste support, and visual history. Built with Next.js, React, TypeScript, and Google Gemini AI.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages