divyam234 / image-resize

Image Resize Service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image Resize Service

Resize Images into Webp Format

git clone https://github.com/divyam234/image-resize
cd image-resize
docker compose up -d

Avaliable on http://localhost:8080

Format: http://localhost:8080/{host}/{path}?w=480&h=270&q=80

Example: http://localhost:8080/images.unsplash.com/photo-1682687220067-dced9a881b56?w=480&h=270&q=80

If any of height or width is missing image will be resized using original aspect ratio.

Resizing Service works best with cache layer on top use cloudflare workers cache api or deploy this service in front of cloudflare tunnel for caching.

About

Image Resize Service

License:MIT License


Languages

Language:Go 85.5%Language:Dockerfile 14.5%