A lightweight and user-friendly image viewer application built with React and TypeScript. Features basic image manipulation tools and a canvas-based drawing utility.
- Image upload and display
- Image rotation
- Zoom in/out functionality
- Draw on images
- Reset image to original state
- Color picker for drawing
- React 18
- TypeScript
- Canvas API
- Radix UI
To run this project in your local development environment:
# Clone the repository
git clone https://github.com/3mincan/simple-image-viewer.git
# Navigate to project directory
cd simple-image-viewer
# Navigate to server directory
cd server
# Install the libraries & dependencies
npm install
# Run the server
npm run dev
# Back to project root
cd ..
# Navigate to client directory
cd client
# Install the libraries & dependencies
npm install
# Run the client
npm run start
- Click "Choose File" to upload an image
- Use rotation buttons to rotate the image
- Use zoom in/out buttons to adjust image size
- To draw on the image:
- Select a color using the color picker
- Draw on the canvas using your mouse
- Click "Reset" to return the image to its original state