/image-proxy-service

🌄 A basic implementation of the image proxy service

Primary LanguageTypeScript

Image Proxy Service

http://localhost:4000/image
  /resize:200:200
  /quality:40
  /greyscale
  /url/https://.../my-image-1.jpg
  @avif
http://localhost:4000/image
  /blur:80
  /resize:200
  /url/https://.../my-image-2.jpg
  @webp

⚠️ This is a basic implementation intended for educational purposes and does not meet all production requirements. However, it provides a great foundation for further development.

Based on node-file-router and sharp.

Features

  1. Resize
  2. Compress
  3. Change format
  4. Greyscale
  5. Tint
  6. Blur

Caching is not implemented. It's expected that it will be on cloud-side.

Start

  1. Install dependencies:
    pnpm install
  2. Run a script:
    pnpm dev
  3. Open localhost:4000

Examples

Several working examples can be found in examples.html