A full-stack web application for real-time image editing, built with Next.js frontend and Spring Boot backend. This application provides various image manipulation features with an intuitive user interface.
- Basic Image Operations:
- Grayscale conversion
- Clockwise and counter-clockwise rotation
- Horizontal and vertical flipping
- Advanced Image Adjustments:
- Brightness control (-100 to +100)
- Blur effect (radius 2-10)
- Real-time preview
- Download processed images
- Responsive design
- Error handling and loading states
- Next.js
- React
- Tailwind CSS
- Shadcn/UI components
- Lucide React icons
- Spring Boot
- Java Image I/O
- Spring Web
- Spring MVC
- Node.js (v14 or higher)
- Java JDK 11 or higher
- Maven
- npm or yarn
- Clone the repository:
git clone git@github.com:sgnhyperion/ImageEditorproject.git
cd image-editor
- Navigate to the backend directory and build the project:
cd backend
mvn clean install
- Run the Spring Boot application:
mvn spring-boot:run
The backend server will start at http://localhost:8082
- Navigate to the frontend directory:
cd frontend
- Install dependencies:
npm install
# or
yarn install
- Create a
.env.local
file:
NEXT_PUBLIC_API_URL=http://localhost:8082
- Run the development server:
npm run dev
# or
yarn dev
The frontend application will be available at http://localhost:3000
Endpoint | Method | Description |
---|---|---|
/api/process/grayscale |
POST | Convert image to grayscale |
/api/process/rotate-clockwise |
POST | Rotate image 90° clockwise |
/api/process/rotate-counter |
POST | Rotate image 90° counter-clockwise |
/api/process/flip-horizontal |
POST | Flip image horizontally |
/api/process/flip-vertical |
POST | Flip image vertically |
/api/process/brightness/{value} |
POST | Adjust image brightness |
/api/process/blur/{radius} |
POST | Apply Gaussian blur |
- Open the application in your web browser
- Click "Select an image" to upload an image
- Use the available editing buttons to modify your image
- Preview changes in real-time
- Click "Download" to save the processed image