Image-Server is a simplified, lightweight, and efficient image-serving API built using the FastAPI framework. The core purpose of this project is to serve images from a local directory into a gallery to easily browse through remote images in a nice convenient interface
- Efficient Image Retrieval: Fetch images swiftly from the specified local directory.
- Dynamic Scaling: Optionally resize images on-the-fly to cater to various device sizes and save bandwidth.
- API Endpoints: Utilize RESTful API endpoints to fetch and manipulate image data.
- Python 3.7+
- FastAPI
- Uvicorn (or any ASGI server)
Clone the repository:
git clone https://github.com/msalvaris/image-server.git
Install
pip install image-server
To run the server, use the following command:
image-server
Now, the API will be accessible at http://127.0.0.1:8000
.
- Get an Image from directory
- Endpoint:
/?images_dir={image_dir}
- Method:
GET
- Description: Fetch all images from directory
- Example:
GET /?images_dir=images
- Endpoint:
We welcome contributions to the Image-Server! Please refer to the CONTRIBUTING.md for guidelines.
This project is licensed under the MIT License - see the LICENSE.md file for details.
- FastAPI for providing a superb, fast (high-performance) web framework to build APIs.