https://github.com/iguit0/resizooor
Simple image resizer
https://github.com/iguit0/resizooor
resize-images study-project
Last synced: 8 months ago
JSON representation
Simple image resizer
- Host: GitHub
- URL: https://github.com/iguit0/resizooor
- Owner: iguit0
- License: apache-2.0
- Created: 2018-01-16T21:54:28.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2024-10-16T15:01:01.000Z (over 1 year ago)
- Last Synced: 2024-10-18T03:59:50.715Z (over 1 year ago)
- Topics: resize-images, study-project
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
:straight_ruler: Resizooor :straight_ruler:
Project |
Tech |
Get Started |
Demo
## :computer: Project
An REST API that receives an image and uses a queuing system to change its size to 384x384.
## :rocket: Tech
- [Docker](https://docs.docker.com/get-docker/)
- [Docker-compose](https://docs.docker.com/engine/reference/commandline/compose/)
- [FastAPI](https://fastapi.tiangolo.com/)
- [Celery](https://docs.celeryq.dev/en/stable/)
- [RabbitMQ](https://www.rabbitmq.com/)
- [Redis](https://redis.io/)
- [Pytest](https://docs.pytest.org/en/7.2.x/)
### :gear: Get Started
```bash
git clone https://github.com/iguit0/resizooor.git
cd resizooor
docker-compose up
```
### Run
Using [Postman](https://www.postman.com/):
- Set up a POST request with the following URL: http://127.0.0.1:8000/images/resize
- Body: `form-data`
- Key: `image_file`
- After that, select `color_bars.png` (example image to test the solution)
- After send the request, the result will appear as body result and after that just save response which is going to be a file.
:video_camera: Watch [demo video](https://drive.google.com/file/d/13LbgMFnuUhzWWnspFRKne866xI6gSGXK/view?usp=share_link).
### Test
Considering you're inside venv, run: `pytest --disable-warnings`