Favicon of Imgproxy

Imgproxy

Process images on demand with a fast, secure standalone server. Resize, crop, convert, and apply watermarks simply by crafting a URL. Simple and easy to set up.

Handle all your image processing needs with a fast and secure standalone server that processes images on the fly. It acts as a simple drop-in replacement for any image manipulation code in your web application. The core principles are speed, security, and simplicity. You provide a source image URL and a set of processing options, and it fetches, processes, and serves the resulting image, offloading all the heavy work.

It is designed to be exceptionally fast and efficient, using the powerful libvips library to ensure high performance with a low memory footprint. Key features include:

  • Versatile Processing: Resize, crop, rotate, apply watermarks, and use various filters.
  • Modern Format Support: Convert images to and from formats like JPEG, PNG, GIF, WebP, and AVIF.
  • Robust Security: Protect your service with signed URLs to prevent unauthorized use, check image dimensions to avoid 'image bombs', and restrict image sources.
  • Easy Deployment: Get started in minutes using the provided Docker image with minimal configuration.

Directory Structure

imgproxy
.env
docker-compose.yml

docker-compose.yml

services:
  imgproxy:
    image: darthsim/imgproxy:latest
    ports:
      - "8080:8080"
    environment:
      - IMGPROXY_KEY=${IMGPROXY_KEY}
      - IMGPROXY_SALT=${IMGPROXY_SALT}
      - IMGPROXY_LOG_LEVEL=info
    restart: unless-stopped

.env

# Hex-encoded key and salt for URL signature verification
# You can generate these using: echo $(xxd -g 2 -l 64 -p /dev/random | tr -d '\n')
IMGPROXY_KEY=943b421c9eb07c830af81030552c86009268de4e532ba2ee2eab8247c6da0881
IMGPROXY_SALT=520f986b998545b4785e52d3f1036356b4f358533438829077a2d4e98c485189
Categories:

Share:

Ad
Favicon

 

  
 

Similar to Imgproxy

Favicon

 

  
  
Favicon

 

  
  
Favicon