Skip to content

DarshanCode2005/Photo-Video-Editor

Repository files navigation

AI Photo/Video Editor

🏆 ByteRush 5 Hackathon Submission

This advanced AI-powered image and video editing platform was developed for the ByteRush 5 Hackathon, centered around artificial intelligence innovations. The project leverages cutting-edge AI technologies to transform the way users edit and enhance their media assets.

🚀 Features

AI-Powered Image Editing

  • Background Removal - Instantly remove backgrounds with precise AI detection
  • Background Replacement - Swap backgrounds with custom images or AI-generated scenes
  • Smart Cropping - AI detects the subject and creates perfectly framed compositions
  • Object Removal - Select and remove unwanted objects with generative fill
  • Color Recoloring - Intelligently recolor specific objects while maintaining natural appearance
  • Subject Extraction - Extract subjects with perfect edge detection

Advanced Video Processing

  • Video Transcription - Convert speech to accurate text with AI transcription
  • Smart Video Editing - Apply AI transformations to video content
  • Video Format Conversion - Seamlessly convert between video formats

Generative AI Tools

  • Generative Fill - Fill removed areas with AI-generated content that matches the scene
  • Content-Aware Expansion - Extend images beyond their original boundaries

User Experience

  • Layer Management - Work with multiple layers for complex edits
  • Real-time Previews - See changes instantly before applying
  • Side-by-side Comparison - Compare original and edited versions
  • Responsive Design - Works seamlessly across devices

🛠️ Technologies Used

Core Technologies

  • Next.js 15 - React framework with App Router for optimal performance
  • TypeScript - For type-safe code and improved developer experience
  • Tailwind CSS - For responsive and beautiful UI components

AI & Cloud Services

  • AI Component - Advanced AI-powered media transformations
    • Neural Network image processing
    • Machine Learning algorithms for smart detection
    • Computer Vision capabilities
  • Media Pipes - For seamless asset management and optimization

UI/UX Components

  • Shadcn UI - Accessible and customizable component library
  • Lucide Icons - Beautiful open-source icons
  • Framer Motion - Smooth animations and transitions
  • React Dropzone - Advanced file upload capabilities
  • React Compare Slider - For intuitive before/after comparisons

State Management & Form Handling

  • Zustand - Lightweight state management
  • Jotai - Atomic state management for reactive UI
  • React Hook Form - Performant form validation and handling
  • Zod - TypeScript-first schema validation

📋 Installation

# Clone the repository
git clone https://github.com/yourusername/PhotoEditor-ai.git

# Navigate to the project directory


# Install dependencies
npm install

# Start the development server
npm run dev

🌐 Deployment

This project is optimized for deployment on Vercel:

  1. Push your repository to GitHub
  2. Import your project on Vercel
  3. Configure the environment variables
  4. Deploy

🖼️ Project Structure

Editor-ai/
├── app/               # Next.js App Router
├── components/        # UI Components
│   ├── editor/        # Main editor components
│   ├── layers/        # Layer management
│   ├── toolbar/       # Editing tools
│   └── upload/        # File upload components
├── lib/               # Utility functions
├── public/            # Static assets
├── server/            # Server-side API routes
│   ├── bg-remove.ts   # Background removal API
│   ├── upload-image.ts # Image upload API
│   └── ...            # Other API endpoints
└── types/             # TypeScript type definitions

🧠 Technical Challenges Overcome

  • Real-time AI Processing - Optimized the pipeline for near-instant AI transformations
  • Seamless Layer Management - Created an intuitive system for handling multiple edits
  • Cross-format Support - Built consistent APIs across different media types
  • Performance Optimization - Ensured smooth experience even with complex operations

🔮 Future Enhancements

  • Voice-controlled editing commands
  • AI-suggested edits based on image content
  • Batch processing for multiple files
  • Custom filter creation with AI assistance
  • Collaborative editing features

📄 License

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

🙏 Acknowledgements

  • ByteRush 5 Hackathon organizers for the amazing event
  • Cloudinary for their powerful AI and media transformation APIs
  • The open source community for the incredible tools that made this possible

Created with 💻 and ❤️ for ByteRush 5 Hackathon

About

Submission for Byterush 5

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors