Skip to content

This web application allows users to easily enhance image using AI technology. Built with React and integrated with a powerful image processing API, this tool provides a simple and intuitive interface for enhancing images related tasks.

Notifications You must be signed in to change notification settings

AnishGane/AI-Image-Enhancer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Image Enhancer

A React application that enhances images using AI technology.

Features

  • Upload images from your device
  • Preview original and enhanced images side by side
  • Real-time AI enhancement processing with loading indicators

Technologies Used

Setup

  1. Clone the repository
  2. Install dependencies:
    npm install
    
  3. Install axios:
    npm i axios --save
    
  4. Create a .env file in the root directory with the following variables:
    VITE_MY_API_KEY = "your_api_key"
    VITE_BASE_URL = "https://techhk.aoscdn.com/"
    
  5. Start the development server:
    npm run dev
    
  6. Open your browser and navigate to the local server address shown in your terminal

Project Structure

  • src/components/ - React components including ImageUpload and ImagePreview
  • src/utils/ - Utility functions including the API integration

How It Works

  1. Users upload an image through the interface
  2. The application sends the image to an AI enhancement API
  3. The application polls the API for the enhanced image
  4. Once processing is complete, the enhanced image is displayed alongside the original

API Integration

The application uses an external AI service for image enhancement. The API communication is handled in enhancedImageAPI.js, which:

  • Uploads the image to the API
  • Retrieves a task ID
  • Polls the API until the enhanced image is ready
  • Returns the enhanced image URL

Environment Variables

  • VITE_MY_API_KEY: Your API key for the enhancement service
  • VITE_BASE_URL: The base URL for the API endpoints

Notes

  • The API has a maximum retry limit of 20 attempts when polling for results
  • Large images may take longer to process

Links

Author

  • AnishGane @ 2025

About

This web application allows users to easily enhance image using AI technology. Built with React and integrated with a powerful image processing API, this tool provides a simple and intuitive interface for enhancing images related tasks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published