Skip to content

prince-kumar-singh/react-image-enhancer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

React Image Enhancer

A powerful web application that leverages AI to enhance image quality using the PicWish API. Upload any image and get an enhanced version with improved resolution, clarity, and color balance in real-time.

πŸ›  Project Information

  • Type: Web Application
  • Stack: React 18 + Vite 4 + TailwindCSS 3
  • API: PicWish Image Enhancement API v1.0
  • License: MIT

🎯 Key Features

  • Drag & Drop Upload: Intuitive file upload with drag-and-drop support
  • Real-time Enhancement: Live preview of enhancement progress
  • Image Comparison: Side-by-side view of original and enhanced images
  • Responsive Design: Optimized for mobile, tablet, and desktop views
  • Loading States: Smooth loading transitions with spinner animation

πŸ“¦ Project Structure

react-image-enhancer/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/           # React components
β”‚   β”‚   β”œβ”€β”€ Home.jsx         # Main page component
β”‚   β”‚   β”œβ”€β”€ ImagePreview.jsx # Image comparison component
β”‚   β”‚   β”œβ”€β”€ ImageUpload.jsx  # File upload component
β”‚   β”‚   └── Loading.jsx      # Loading spinner component
β”‚   β”œβ”€β”€ utils/
β”‚   β”‚   └── enhanceImageApi.js # PicWish API integration
β”‚   β”œβ”€β”€ App.jsx             # Root component
β”‚   └── main.jsx           # Entry point
β”œβ”€β”€ public/                # Static assets
β”œβ”€β”€ .env                  # Environment variables
β”œβ”€β”€ vite.config.js        # Vite configuration
└── eslint.config.js      # ESLint configuration

πŸ— Architecture

  • Component Architecture

    • Home: Main container managing state and image processing
    • ImageUpload: Handles file selection
    • ImagePreview: Displays original and enhanced images
    • Loading: Shows loading animation
  • State Management

    • Local state with useState in Home component
    • Props for component communication
    • File handling with URL.createObjectURL
  • API Integration

    • Axios for HTTP requests to PicWish API
    • Polling mechanism for enhancement status
    • Error handling with try-catch blocks

πŸš€ Getting Started

Prerequisites

  • Node.js (v16+)
  • npm or yarn
  • PicWish API Key

Installation

  1. Clone and install dependencies:
git clone https://github.com/yourusername/react-image-enhancer.git
cd react-image-enhancer
npm install
  1. Add your PicWish API key in .env:
PICWISE_API_KEY=your_api_key_here
  1. Start development server:
npm run dev

πŸ”§ Built With

  • React.js 18 with Vite
  • TailwindCSS for styling
  • Axios for API calls

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published