- FastAPI
- Pillow
- Convert image to any file extensions
- Resize image
- Support Bypass CORS
- Support
.GIF
file
SUPPORTED_SCHEMES = ["http", "https"]
MAX_FILE_SIZE = 12400000
TIMEOUT = 15
SUPPORTED_FILE_TYPES = [
"image/png",
"image/jpeg",
"image/heif",
"image/heic",
"image/webp",
]
SUPPORTED_OUTPUT_IMAGE_TYPES = ["JPG", "JPEG", "PNG", "WEBP"]
- Clone this repository
git clone git@github.com:fuongz/image-proxy.git
- Install the required dependencies
# with venv
# python -m venv venv
pip install -r requirements.txt
- Run with fastapi and expose to port 3000
fastapi dev app/main.py --port 3000