The ASCII Art Converter is a web application that allows users to upload images by link or file and convert them into ASCII art. The app utilizes a React frontend for a responsive user interface and a FastAPI backend for efficient image processing.
-
Image Upload: Users can easily upload images from their devices. The frontend handles file input and provides a preview of the uploaded image.
-
Conversion Process:
- The uploaded image is sent to the FastAPI backend.
- FastAPI processes the image, converting it into ASCII art using specific algorithms.
- The resulting ASCII art is returned to the frontend.
-
Responsive Design: Built with React, the app features a clean and intuitive interface that works well on both desktop and mobile devices.
Frontend: React, TailwindCSS
Backend: FastAPI
Image Processing: Pillow
Clone my project
git clone https://github.com/Fialex1212/react-fastapi-todo.git
Run the frontend
cd frontend
npm install
npm run dev
Run the backend
cd backend
python -m venv venv
.\venv\scripts\activate
pip install requirements.txt
uvicorn src.main:app
Run the docker-compose
docker-compose up --build
Backend by this path - http://127.0.0.1:8000/
Frontend by this path - http://localhost:4173/
GET /ping
{
"message": "PONG"
}
GET /read-filename
Parameter | Type | Description |
---|---|---|
file |
UploadFile |
Required. Image file to extract the filename |
{
"filename": "image.jpg"
}
POST /get-txt-by-img-file
Parameter | Type | Description |
---|---|---|
file |
UploadFile |
Required. Image file to extract text from |
{
file in .txt format
}
POST /get-txt-by-img-url
Parameter | Type | Description |
---|---|---|
url |
string |
Required. URL of the image to extract text from |
{
file in .txt format
}